Skip to content

Commit 8024f57

Browse files
committed
fixes
Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent a042856 commit 8024f57

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

vortex/benches/single_encoding_throughput.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ fn bench_zstd_compress_string(bencher: Bencher) {
440440
let nbytes = varbinview_arr.nbytes() as u64;
441441

442442
with_byte_counter(bencher, nbytes)
443-
.with_inputs(|| (varbinview_arr, SESSION.create_execution_ctx()))
444-
.bench_values(|(a, mut ctx)| ZstdData::from_array(a, 3, 8192, &mut ctx).unwrap());
443+
.with_inputs(|| (&varbinview_arr, SESSION.create_execution_ctx()))
444+
.bench_refs(|(a, ctx)| ZstdData::from_array(a, 3, 8192, ctx).unwrap());
445445
}
446446

447447
#[cfg(feature = "zstd")]
@@ -468,5 +468,5 @@ fn bench_zstd_decompress_string(bencher: Bencher) {
468468

469469
with_byte_counter(bencher, nbytes)
470470
.with_inputs(|| (&compressed, SESSION.create_execution_ctx()))
471-
.bench_refs(|(a, ctx)| canonicalize((**a).clone(), ctx));
471+
.bench_refs(|(a, ctx)| canonicalize(a.clone(), ctx));
472472
}

0 commit comments

Comments
 (0)