Skip to content

Commit

Permalink
FIX: add cache-sim argument (fix issue 34)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigaloid committed Jun 1, 2023
1 parent 58e28e9 commit d56a597
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ fn run_bench(
};
let status = cmd
.arg("--tool=cachegrind")
// https://github.com/bheisler/iai/issues/34
.arg("--cache-sim=yes")
// Set some reasonable cache sizes. The exact sizes matter less than having fixed sizes,
// since otherwise cachegrind would take them from the CPU and make benchmark runs
// even more incomparable between machines.
Expand Down

0 comments on commit d56a597

Please sign in to comment.