mirror of
https://github.com/google/benchmark.git
synced 2025-01-27 20:30:15 +08:00
Fixes #161
This commit is contained in:
parent
7c8d8c9dd7
commit
4499e8e415
@ -165,6 +165,7 @@ static void BM_MultiThreaded(benchmark::State& state) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
BENCHMARK(BM_MultiThreaded)->Threads(2);
|
BENCHMARK(BM_MultiThreaded)->Threads(2);
|
||||||
|
```
|
||||||
|
|
||||||
To prevent a value or expression from being optimized away by the compiler
|
To prevent a value or expression from being optimized away by the compiler
|
||||||
the `benchmark::DoNotOptimize(...)` function can be used.
|
the `benchmark::DoNotOptimize(...)` function can be used.
|
||||||
|
Loading…
Reference in New Issue
Block a user