Skip to content

Commit 57eaf45

Browse files
committed
comment
Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent 0a712cd commit 57eaf45

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

vortex-buffer/benches/vortex_bitbuffer.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ fn slice_arrow_buffer(bencher: Bencher, length: usize) {
166166
#[divan::bench(args = INPUT_SIZE)]
167167
fn true_count_vortex_buffer(bencher: Bencher, length: usize) {
168168
let buffer = BitBuffer::from_iter((0..length).map(true_count_pattern));
169-
buffer.true_count();
169+
// Preload cpuid flags, one slow run that does feature detection skews sampling thus leading to way too few runs when feature detection kicks in.
170+
#[cfg(target_arch = "x86_64")]
171+
let _ = is_x86_feature_detected!("avx2");
170172

171173
bencher
172174
.with_inputs(|| &buffer)

0 commit comments

Comments
 (0)