Hi Irwin
I did originally make some efforts to integrate this directly with Google Test, but it was decided that separate projects would be better.
You almost certainly don't want to run the benchmark as a TEST as the method used to get good timings and track iterations would need tighter integration.
The best way is to define tests and benchmarks in one executable and then set up a custom main function to run both test and benchmark instances.
- dominic
--
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.
Hi Dominic,
Thanks for the speedy reply!
You almost certainly don't want to run the benchmark as a TEST as the
method used to get good timings and track iterations would need tighter
integration.
What I'm proposing is running some BENCHMARK(...) functions within a Test, so that only those BENCHMARK(...) functions are benchmarked. I certainly wouldn't want to benchmark the whole TEST. (Or was this clear before?)
Is something wrong with my proposal of using RunInstance over the created instances? (I'd just like to understand.)
The best way is to define tests and benchmarks in one executable and
then set up a custom main function to run both test and benchmark instances.
This could work, but it's a bit tricky. For instance, I think I'd have to create a lot of wrapper functions around what I want to benchmark. Then I'd have to call those within various TEST(...) and also wrap those in functions that accept a benchmark::State&.
Irwin