Skip to content

Commit

Permalink
Fix typo in bench/filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekit2217 committed Jul 13, 2024
1 parent 62dc437 commit 164de42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benches/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn filtering(filter: &Box<dyn Filter>, values: &Vec<Value>) {

fn naive_filter_benchmark(c: &mut Criterion) {
let values = read_json_file(SOURCE_PATH).unwrap();
let filter = FilterFactory::try_build(&FilterEngine::Naive, &vec!("method=='get'".to_string())).expect("wrong");
let filter = FilterFactory::try_build(&FilterEngine::Naive, &vec!("method=='GET'".to_string())).expect("wrong");
c.bench_function("naive_filter_benchmark", |b| {
b.iter(|| filtering(&filter, black_box(&values)))
});
Expand All @@ -46,7 +46,7 @@ fn naive_filter_benchmark(c: &mut Criterion) {

fn jmespath_filter_benchmark(c: &mut Criterion) {
let values = read_json_file(SOURCE_PATH).unwrap();
let filter = FilterFactory::try_build(&FilterEngine::Jmespath, &vec!("method=='get'".to_string())).expect("wrong");
let filter = FilterFactory::try_build(&FilterEngine::Jmespath, &vec!("method=='GET'".to_string())).expect("wrong");
c.bench_function("jmespath_filter_benchmark", |b| {
b.iter(|| filtering(&filter, black_box(&values)))
});
Expand Down

0 comments on commit 164de42

Please sign in to comment.