Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
Signed-off-by: Little-Wallace <[email protected]>
  • Loading branch information
Little-Wallace committed Feb 26, 2024
1 parent 4b48edf commit 386182b
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions src/storage/benches/bench_compactor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,29 @@ fn bench_merge_iterator_compactor(c: &mut Criterion) {
let sstable_store = mock_sstable_store();
let test_key_size = 256 * 1024;
let info1 = runtime
.block_on(async { build_table(sstable_store.clone(), 1, 0..test_key_size/2, 1).await });
let info2 = runtime
.block_on(async { build_table(sstable_store.clone(), 2, test_key_size/2 .. test_key_size, 1).await });
.block_on(async { build_table(sstable_store.clone(), 1, 0..test_key_size / 2, 1).await });
let info2 = runtime.block_on(async {
build_table(
sstable_store.clone(),
2,
test_key_size / 2..test_key_size,
1,
)
.await
});
let level1 = vec![info1, info2];

let info1 = runtime
.block_on(async { build_table(sstable_store.clone(), 3, 0..test_key_size/2, 2).await });
let info2 = runtime
.block_on(async { build_table(sstable_store.clone(), 4, test_key_size/2 .. test_key_size, 2).await });
.block_on(async { build_table(sstable_store.clone(), 3, 0..test_key_size / 2, 2).await });
let info2 = runtime.block_on(async {
build_table(
sstable_store.clone(),
4,
test_key_size / 2..test_key_size,
2,
)
.await
});
let level2 = vec![info1, info2];
let read_options = Arc::new(SstableIteratorReadOptions {
cache_policy: CachePolicy::Fill(CachePriority::High),
Expand Down

0 comments on commit 386182b

Please sign in to comment.