Closed Indra-db closed 11 months ago
wrap the for loop index in a black_box to prevent optimizations to happen, which lead to incorrect benchmark comparison.
On my machine without the blackbox the slow function took 200 picoseconds while the fast took 2.5ns.
wrap the for loop index in a black_box to prevent optimizations to happen, which lead to incorrect benchmark comparison.
On my machine without the blackbox the slow function took 200 picoseconds while the fast took 2.5ns.