mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-10-28 18:07:16 +08:00
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:
parent
cdc385d058
commit
38168208f6
@ -111,6 +111,7 @@ void pretty_print(double volume, size_t number_of_floats, std::string name,
|
|||||||
instructions_avg /= events.size();
|
instructions_avg /= events.size();
|
||||||
average_ns /= events.size();
|
average_ns /= events.size();
|
||||||
branches_avg /= events.size();
|
branches_avg /= events.size();
|
||||||
|
branch_misses_avg /= events.size();
|
||||||
printf("%-40s: %8.2f MB/s (+/- %.1f %%) ", name.data(),
|
printf("%-40s: %8.2f MB/s (+/- %.1f %%) ", name.data(),
|
||||||
volumeMB * 1000000000 / min_ns,
|
volumeMB * 1000000000 / min_ns,
|
||||||
(average_ns - min_ns) * 100.0 / average_ns);
|
(average_ns - min_ns) * 100.0 / average_ns);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user