benchmark
benchmark copied to clipboard
A microbenchmark support library
Newer versions of clang (on Windows at least) fail to compile **benchmark** with `-Werror` and `-pedantic-errors`. Unfortunately, the `BENCHMARK_ENABLE_WERROR` option toggles only `-Werror`, and not `-pedantic-errors`. ``` .../build/Debug/_deps/benchmark-src/src/benchmark.cc:225:7: error: offset...
i try to use google benchmark for wasm and it does not provide thread. Is that possible to use this without pthread?
**Describe the bug** `benchmark::DoNotOptimize()` does not prevent a reference from being optimized away. **System** OS: Ubuntu 20.04 LTS, Compiler explorer Compiler: GCC 9.04, GCC trunk, Clang trunk **To reproduce** Compiler...
Hi there, I did a benchmark for `cv::cvtColor` (in essense it loops through a set of images and does conversion BayerRG => BGR). ``` Run on (24 X 2112 MHz...
**Is your feature request related to a problem? Please describe.** Currently, looking at the docs, it does not appear like we can resuse benchmark functions per fixture template, which I...
**Is your feature request related to a problem? Please describe.** As part of the libc++ test suite, we use GoogleBenchmark to write micro-benchmarks for various parts of the library. Running...
As [this issue](https://github.com/google/benchmark/issues/345) explains, in a multi-threaded benchmark, the threads are synchronized before starting the loop, and after exiting, but not during the iterations. In the following example, the results...
After v1.8.5's release just now, wheels built fine but were not uploaded due to a failure in trusted publishing: https://github.com/google/benchmark/actions/runs/9989674343 To allow subsequent wheel releases for GBM, this needs to...
**Describe the bug** I would like to run the benchmark on a particular CPU core. The [docs]( says: ``` 2. Set the benchmark program's task affinity to a fixed cpu....
A common pattern I am using in my benchmarking code is: ``` for (auto _ : state) { state.PauseTiming(); /* Generate some data for this iteration, or cleanup from the...