I have some application binaries and I'm interested in comparing their performance. Although google benchmark is meant for microbenchmarking, I found it's handy to do something as follows, and the results look meaningful.
---
void BM_app(benchmark::State& state) {
for (auto _ : state) {
int result = std::system("myapp");
benchmark::DoNotOptimize(result);
}
}
BENCHMARK(BM_app)->Iterations(100);
---
I wonder how reliable is it to use google benchmark this way? Or is it a stupid idea to do so?
Thanks!
Luke
--
You received this message because you are subscribed to the Google Groups "benchmark-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to benchmark-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.