4 ms·
Microbenchmarks are not lying, but they can be misleading... The most frequent problem is selecting the fastest solution with a microbenchmark and creating a l
by stephc_int13 6y ago
Microbenchmarks are not lying, but they can be misleading...
The most frequent problem is selecting the fastest solution with a microbenchmark and creating a lot of unnecessary cache eviction/pollution, sometimes on the code cache, sometimes on L1/L2 or both...
Microbenchmarks are good to explore the optimization space, but the final decision should be made with the full execution context in mind.