diff --git a/benches/compress.rs b/benches/compress.rs index 8a26e50..32981d5 100644 --- a/benches/compress.rs +++ b/benches/compress.rs @@ -82,6 +82,14 @@ fn bench_dbtext(c: &mut Criterion) { b.iter(|| unsafe { compressor.compress_into(&buf, &mut buffer) }); }); + let decompressor = compressor.decompressor(); + group.throughput(Throughput::Bytes(buffer.len() as u64)); + group.bench_function("decompress", |b| { + b.iter_with_large_drop(|| { + decompressor.decompress(&buffer); + }); + }); + group.finish(); // Report the compression factor for this dataset.