Skip to content

Commit

Permalink
Suggest performance counters to look for
Browse files Browse the repository at this point in the history
  • Loading branch information
jussienko committed May 22, 2024
1 parent 8d34436 commit f0ef28a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions branch-prediction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ predictor has hardtime figuring out which branch is taken.
Try to sort the data before calling `test_memory`, does the performance improve?
(effect can be seen better with moderate compiler settings, *i.e*. `-O1`)

Try to compare branch prediction related performance counters *e.g.* `perf stat -e branch-misses` for the two cases.

There is also a Fortran version, however, as there are no sorting routines in the standard library
implementing the sorting is more tedious here.

0 comments on commit f0ef28a

Please sign in to comment.