Benchmarks
Vocabulary
measurement: a single call to Test::run_optimized() from within the function that measures CPU cycles.
Benchmark Modes
Every Benchmark consists of tests A and B. In a standard benchmark, test B would be whatever test was registered as the comparative of test A.
There are three Benchmark Modes.
Mama Bear
This is the "Cold Cache" mode. One measurement is taken of A, one of B, alternating until n measurements have been taken from each. This prevents instruction cache warming from occurring.
Papa Bear
This is the "Hot Cache" mode. All n measurements are taken for A before the measurements for B are taken. This ensures maximum possible cache warming.
Baby Bear
This is the "Just Right Cache" mode. It allows some cache warming to take place naturally. Eight measurements are taken from A, and eight from B, alternating until n measurements have been taken from each.
- Last Author
- jcmcdonald
- Last Edited
- Jul 2 2020, 5:43 PM