Skip to content

Commit

Permalink
Add dbtext decompression benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCondron committed Oct 11, 2024
1 parent c973919 commit 42973f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions benches/compress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ fn bench_dbtext(c: &mut Criterion) {
b.iter(|| unsafe { compressor.compress_into(&buf, &mut buffer) });
});

unsafe {
compressor.compress_into(&buf, &mut buffer);
};
let decompressor = compressor.decompressor();
group.bench_function("decompress", |b| {
b.iter_with_large_drop(|| decompressor.decompress(&buffer));
});

group.finish();

// Report the compression factor for this dataset.
Expand Down

0 comments on commit 42973f2

Please sign in to comment.