Skip to content

Commit a44d141

Browse files
committed
chore: increase sample count to stabilize flaky benchmarks
Signed-off-by: Alexander Droste <[email protected]>
1 parent 08530fd commit a44d141

File tree

4 files changed

+6
-22
lines changed

4 files changed

+6
-22
lines changed

vortex-array/benches/varbinview_compact.rs

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,40 +16,24 @@ fn main() {
1616
divan::main();
1717
}
1818

19-
const SMALL_ARGS: &[(usize, usize)] = &[
19+
const ARGS: &[(usize, usize)] = &[
2020
// (output_size, buffer_utilization_pct)
2121
(1 << 12, 10),
2222
(1 << 12, 90),
2323
(1 << 14, 10),
2424
(1 << 14, 90),
2525
];
2626

27-
const LARGE_ARGS: &[(usize, usize)] = &[
28-
// (output_size, buffer_utilization_pct)
29-
(1 << 19, 10),
30-
(1 << 19, 90),
31-
];
32-
33-
#[divan::bench(args = SMALL_ARGS)]
27+
#[divan::bench(args = ARGS)]
3428
fn compact(bencher: Bencher, args: (usize, usize)) {
3529
compact_impl(bencher, args);
3630
}
3731

38-
#[divan::bench(args = LARGE_ARGS, sample_count = 10)]
39-
fn compact_large(bencher: Bencher, args: (usize, usize)) {
40-
compact_impl(bencher, args);
41-
}
42-
43-
#[divan::bench(args = SMALL_ARGS)]
32+
#[divan::bench(args = ARGS)]
4433
fn compact_sliced(bencher: Bencher, args: (usize, usize)) {
4534
compact_sliced_impl(bencher, args);
4635
}
4736

48-
#[divan::bench(args = LARGE_ARGS, sample_count = 10)]
49-
fn compact_sliced_large(bencher: Bencher, args: (usize, usize)) {
50-
compact_sliced_impl(bencher, args);
51-
}
52-
5337
fn compact_impl(bencher: Bencher, (output_size, utilization_pct): (usize, usize)) {
5438
let base_size = (output_size * 100) / utilization_pct;
5539
let base_array = build_varbinview_fixture(base_size);

vortex-btrblocks/benches/dict_encode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ fn encode_specialized(bencher: Bencher) {
4242
}
4343

4444
fn main() {
45-
divan::main()
45+
divan::Divan::from_args().sample_count(1000).main();
4646
}

vortex-btrblocks/benches/stats_calc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ mod benchmarks {
7979
}
8080

8181
fn main() {
82-
divan::main();
82+
divan::Divan::from_args().sample_count(1000).main();
8383
}

vortex/benches/pipeline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const VERIFICATION_SIZES: [usize; 2] = [
159159
////////////////////////////////////////////////////////////////////////////////////////////////////
160160

161161
fn main() {
162-
divan::main();
162+
divan::Divan::from_args().sample_count(1000).main();
163163
}
164164

165165
////////////////////////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)