Skip to content

Commit 8f2c49d

Browse files
committed
Switch callgrind benchmark to only run one iteration of coremark
1 parent 2d339a7 commit 8f2c49d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

benches/coremark.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ use iai_callgrind::{
33
};
44

55
#[binary_benchmark]
6-
#[bench::coremark_10(
7-
args = ("mlogv32.msch", "coremark_10.bin"),
6+
#[bench::coremark_1(
7+
args = ("mlogv32.msch", "coremark_1.bin"),
88
config = BinaryBenchmarkConfig::default()
99
.sandbox(
1010
Sandbox::new(true)
1111
.fixtures([
12-
"benches/coremark_10.bin",
12+
"benches/coremark_1.bin",
1313
"schematics/mlogv32.msch",
1414
])
1515
),
1616
)]
17-
fn bench_coremark_10(schem: &str, bin: &str) -> Command {
17+
fn bench_coremark_1(schem: &str, bin: &str) -> Command {
1818
Command::new(env!("CARGO_BIN_EXE_mlogv32"))
1919
.args([schem, "--bin", bin, "--delta=6", "--no-tui"])
2020
.build()
2121
}
2222

23-
binary_benchmark_group!(name = coremark; benchmarks = bench_coremark_10);
23+
binary_benchmark_group!(name = coremark; benchmarks = bench_coremark_1);
2424
main!(binary_benchmark_groups = coremark);

benches/coremark_1.bin

34.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)