Merge "Prevent benchmarks from being optimized away."
This commit is contained in:
commit
852d4fbbe9
@ -20,8 +20,8 @@
|
||||
#include <math.h>
|
||||
|
||||
// Avoid optimization.
|
||||
double d;
|
||||
double v;
|
||||
volatile double d;
|
||||
volatile double v;
|
||||
|
||||
static void BM_math_sqrt(int iters) {
|
||||
StartBenchmarkTiming();
|
||||
|
Loading…
x
Reference in New Issue
Block a user