Average branch misses over the repetitions in the benchmark

bm/f printed the total over all repetitions per float, unlike the other counters.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Raúl Marín 2026-09-23 19:12:41 +02:00
parent cdc385d058
commit 38168208f6

View File

@ -111,6 +111,7 @@ void pretty_print(double volume, size_t number_of_floats, std::string name,
instructions_avg /= events.size();
average_ns /= events.size();
branches_avg /= events.size();
branch_misses_avg /= events.size();
printf("%-40s: %8.2f MB/s (+/- %.1f %%) ", name.data(),
volumeMB * 1000000000 / min_ns,
(average_ns - min_ns) * 100.0 / average_ns);