- Published on
Investigation · Part 19 of 20 · When the benchmark lies
The Microbenchmark Won and the Program Got Slower
Alone, a lookup table was four times faster than a division. In a loop that also used 1 to 8 MiB of its own counters, the same table made the whole loop 4 to 34 percent slower. The microbenchmark had the cache for itself, and the program had to share it.