mirror of
https://github.com/google/benchmark.git
synced 2025-03-16 20:20:09 +08:00
This patch improves the performance of the KeepRunning loop in two ways: (A) it removes the dependency on the max_iterations variable, preventing it from being loaded every iteration. (B) it loops to zero, instead of to an upper bound. This allows a single decrement instruction to be used instead of a arithmetic op followed by a comparison. |
||
---|---|---|
.. | ||
benchmark |