Skip to content

Commit d2840b7

Browse files
authored
add test for gungraun summary (#621)
1 parent f956c04 commit d2840b7

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

lib/bencher_adapter/src/adapters/rust/iai_callgrind.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,15 @@ pub(crate) mod test_rust_iai_callgrind {
628628
validate_adapter_rust_iai_callgrind(&results, &OptionalMetrics::default());
629629
}
630630

631+
#[test]
632+
fn test_with_gungraun_summary() {
633+
let results = convert_file_path::<AdapterRustIaiCallgrind>(
634+
"./tool_output/rust/iai_callgrind/with-gungraun-summary.txt",
635+
);
636+
637+
validate_adapter_rust_iai_callgrind(&results, &OptionalMetrics::default());
638+
}
639+
631640
#[test]
632641
fn test_ansi_escapes_issue_345() {
633642
let results = convert_file_path::<AdapterRustIaiCallgrind>(
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
running 0 tests
3+
4+
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
5+
6+
rust_iai_callgrind::bench_fibonacci_group::bench_fibonacci short:10
7+
Instructions: 1734|1650 (+5.09090%) [+1.04844x]
8+
L1 Hits: 2359|2275 (+3.69230%) [+1.03560x]
9+
L2 Hits: 0|0 (No change)
10+
RAM Hits: 3|3 (No change)
11+
Total read+write: 2362|2278 (+3.68744%) [+1.03556x]
12+
Estimated Cycles: 2464|2380 (+3.52941%) [+1.03409x]
13+
rust_iai_callgrind::bench_fibonacci_group::bench_fibonacci long:30
14+
Instructions: 26214734|24943490 (+5.09649%) [+1.04849x]
15+
L1 Hits: 35638619|34367375 (+3.69898%) [+1.03567x]
16+
L2 Hits: 0|0 (No change)
17+
RAM Hits: 3|3 (No change)
18+
Total read+write: 35638622|34367378 (+3.69898%) [+1.03567x]
19+
Estimated Cycles: 35638724|34367480 (+3.69897%) [+1.03567x]
20+
21+
Gungraun result: Regressed. 2 without regressions; 0 regressed; 2 benchmarks finished in 1.002s

0 commit comments

Comments
 (0)