Skip to content

Commit 46b0049

Browse files
authored
fix: disable flaky bench for codspeed (#5580)
Signed-off-by: Alexander Droste <[email protected]>
1 parent 1c48710 commit 46b0049

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

vortex-buffer/benches/vortex_bitbuffer.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@ impl FromIterator<bool> for Arrow<BooleanBuffer> {
2626

2727
const INPUT_SIZE: &[usize] = &[128, 1024, 2048, 16_384, 65_536];
2828

29-
#[divan::bench(
30-
types = [Arrow<BooleanBuffer>, BitBuffer],
31-
args = INPUT_SIZE,
32-
)]
33-
fn from_iter<B: FromIterator<bool>>(n: usize) {
34-
B::from_iter((0..n).map(|i| i % 2 == 0));
29+
#[cfg(not(codspeed))]
30+
#[divan::bench(args = INPUT_SIZE)]
31+
fn from_iter_arrow(n: usize) {
32+
Arrow::<BooleanBuffer>::from_iter((0..n).map(|i| i % 2 == 0));
33+
}
34+
35+
#[divan::bench(args = INPUT_SIZE)]
36+
fn from_iter_bit_buffer(n: usize) {
37+
BitBuffer::from_iter((0..n).map(|i| i % 2 == 0));
3538
}
3639

3740
#[divan::bench(args = INPUT_SIZE)]

0 commit comments

Comments
 (0)