Skip to content

Commit

Permalink
feat: add dbtext decompression benchmark (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCondron authored Oct 11, 2024
1 parent c973919 commit fd27344
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 fd27344

Please sign in to comment.