Skip to content

Commit

Permalink
fix bug that hid speedups
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan committed Apr 8, 2024
1 parent 00ad967 commit ab31603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tests/vm-benchmark/src/compare_iai_results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() {
.intersection(&iai_after.keys().collect())
.flat_map(|&name| {
let diff = percent_difference(iai_before[name], iai_after[name]);
if diff > 2. {
if diff.abs() > 2. {
Some((name, format!("{:+.1}%", diff)))
} else {
None
Expand Down

0 comments on commit ab31603

Please sign in to comment.