gui_starter_template icon indicating copy to clipboard operation
gui_starter_template copied to clipboard

google benchmark support

Open marcpawl opened this issue 4 years ago • 2 comments

Would be nice to have Google benchmark as one of the optional dependencies

marcpawl avatar Jul 26 '20 16:07 marcpawl

I agree; a CMake flag that people can set would be a great way to encourage our users to benchmark their code.

Please note that it is trivial to add Google Benchmark as a dependency yourself, since it is hosted on Conan. Just add this line, perhaps within a conditional, to cpp_starter_project/CMakeLists.txt:

set(CONAN_EXTRA_REQUIRES ${CONAN_EXTRA_REQUIRES} benchmark/1.5.1)

An argument could be made that benchmarks should be required rather than optional, and that Google Benchmark actually belongs in cpp_starter_project/cmake/Conan.cmake right next to catch2, as an equally important part of every project. This is a matter of opinion though.

ddalcino avatar Sep 02 '20 03:09 ddalcino

I prefer that we add support for Coz too. It is one of the best tools for benchmarking and profiling.

aminya avatar Sep 30 '20 07:09 aminya