Skip to content

Commit faef71c

Browse files
committed
fix(benches): update DB::new calls with index_threshold
1 parent 56282d9 commit faef71c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

benches/db.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ fn insertion_benchmark(c: &mut Criterion) {
4949
for _ in 0..iters {
5050
// Setup for each iteration: Create a new DB in a temp directory
5151
let dir = tempdir().unwrap();
52-
let mut db = DB::new(dir.path().to_str().unwrap(), max_docs + 1, 10, None);
52+
let mut db =
53+
DB::new(dir.path().to_str().unwrap(), max_docs + 1, 10, 1024, None);
5354
db.create_collection("test").unwrap();
5455

5556
let start = std::time::Instant::now();
@@ -91,7 +92,7 @@ fn query_benchmark(c: &mut Criterion) {
9192

9293
// Let's create a separate setup for queries that returns the DB
9394
let dir = tempdir().unwrap();
94-
let mut db = DB::new(dir.path().to_str().unwrap(), num_docs + 1, 10, None); // Don't flush
95+
let mut db = DB::new(dir.path().to_str().unwrap(), num_docs + 1, 10, 1024, None); // Don't flush
9596
db.create_collection(collection_name).unwrap();
9697
for i in 0..num_docs {
9798
db.insert(collection_name, json!({"value": i})).unwrap();

0 commit comments

Comments
 (0)