From 164de42d9b63b14e0b4afe8595482d65515fe98b Mon Sep 17 00:00:00 2001 From: Nikita Date: Sat, 13 Jul 2024 20:07:08 +0300 Subject: [PATCH] Fix typo in bench/filters --- benches/filters.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benches/filters.rs b/benches/filters.rs index 665dfcd..fd7b94c 100644 --- a/benches/filters.rs +++ b/benches/filters.rs @@ -37,7 +37,7 @@ fn filtering(filter: &Box, values: &Vec) { 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))) }); @@ -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))) });