Skip to content

Commit 9517208

Browse files
committed
cleanup benchmark
1 parent f313f22 commit 9517208

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

benches/bool_queries_with_range.rs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -153,19 +153,16 @@ fn main() {
153153
// Define all four field types
154154
let field_names = ["num_rand", "num_asc", "num_rand_fast", "num_asc_fast"];
155155

156-
// Define the three terms we want to test with
157-
let terms = ["a"];
156+
let term = "a";
158157

159-
// Generate all combinations of terms and field names
158+
// Generate all combinations of term and field names
160159
let mut queries = Vec::new();
161-
for &term in &terms {
162-
for &field_name in &field_names {
163-
let query_str = format!(
164-
"{} AND {}:[{} TO {}]",
165-
term, field_name, range_low, range_high
166-
);
167-
queries.push((query_str, field_name.to_string()));
168-
}
160+
for &field_name in &field_names {
161+
let query_str = format!(
162+
"{} AND {}:[{} TO {}]",
163+
term, field_name, range_low, range_high
164+
);
165+
queries.push((query_str, field_name.to_string()));
169166
}
170167

171168
let query_str = format!(

0 commit comments

Comments
 (0)