Skip to content

Commit bd126fe

Browse files
committed
Updates.
1 parent 61b717a commit bd126fe

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

benches/memory_init.rs

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,29 @@ use criterion::{criterion_group, criterion_main, Criterion};
22
use std::time::Duration;
33

44
/// Lengths used for benchmarking.
5-
const LENGTHS: [usize; 19] = [
6-
0, 1, 10, 100, 200, 1_000, 2_000, 10_000, 20_000, 50_000, 100_000, 200_000, 500_000, 1_000_000, 2_000_000, 5_000_000, 10_000_000, 20_000_000, 50_000_000,
5+
const LENGTHS: [usize; 21] = [
6+
0,
7+
1,
8+
10,
9+
100,
10+
200,
11+
1_000,
12+
2_000,
13+
5_000,
14+
10_000,
15+
20_000,
16+
50_000,
17+
100_000,
18+
200_000,
19+
500_000,
20+
1_000_000,
21+
2_000_000,
22+
5_000_000,
23+
10_000_000,
24+
20_000_000,
25+
50_000_000,
26+
100_000_000,
727
];
8-
// const LENGTHS: [usize; 1] = [100_000_000];
928

1029
const TEMPLATE: &str = r#"
1130
(module
@@ -28,7 +47,7 @@ fn wat_source(length: usize) -> String {
2847
fn make_config() -> Criterion {
2948
Criterion::default()
3049
.without_plots()
31-
.measurement_time(Duration::new(5, 0))
50+
.measurement_time(Duration::new(10, 0))
3251
.sample_size(20)
3352
.configure_from_args()
3453
}

0 commit comments

Comments
 (0)