fix bench using from_bytes_compression
@@ -30,7 +30,10 @@ fn decompress_array_with_fast_lz4(c: &mut Criterion) {
for size in ARRAY_SIZES.iter() {
group.bench_with_input(BenchmarkId::from_parameter(size), size, |b, &size| {
b.iter_with_setup(
- || FastArrayCompressionNx1::new(Lz4 { level: 10 }).compress(&set_up_array(size)),
+ || {
+ FastArrayCompressionNx1::from_bytes_compression(Lz4 { level: 10 })
+ .compress(&set_up_array(size))
+ },
|compressed_array| {
compressed_array.decompress();
},
