Skip to content

Commit e05625c

Browse files
committed
Reduce benchmark sample size to 10 for faster execution
Set sample_size(10) for both benchmark groups to reduce execution time in CI. This reduces samples from the default ~100 to 10, providing a reasonable balance between statistical accuracy and build time.
1 parent 0024fd6 commit e05625c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ledger/benches/database.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use mina_tree::*;
1515

1616
fn benchmark_account_generation(c: &mut Criterion) {
1717
let mut group = c.benchmark_group("account_generation");
18+
group.sample_size(10);
1819

1920
for naccounts in [1_000, 10_000, 120_000] {
2021
group.bench_with_input(
@@ -42,6 +43,7 @@ fn benchmark_account_generation(c: &mut Criterion) {
4243

4344
fn benchmark_merkle_root_computation(c: &mut Criterion) {
4445
let mut group = c.benchmark_group("merkle_root_computation");
46+
group.sample_size(10);
4547

4648
for naccounts in [1_000, 10_000, 120_000] {
4749
// Prepare the database with accounts

0 commit comments

Comments
 (0)