Closed loumalouomega closed 2 days ago
Could you add a
kratos_add_benchmarks
call into the core to compile the example maybe? or you plan to do it in another PR¿
I don't get you
You add an example but its not compiling, or I am missing something?
You add an example but its not compiling, or I am missing something?
Nope, because default is disabled. Can be activated to CI if you like
📝 Description
Related https://github.com/KratosMultiphysics/Kratos/pull/12861
This PR adds (as external download like in GTest) Google benchmark, see https://github.com/google/benchmark. It will generate one binary per file automatically detected in the
benchmark
folder. The executable will be in the binarybenchmark
folder.It is activated with
KRATOS_BUILD_BENCHMARK
, which is disabled by default.Here an example of usage:
It also includes a python script in order to compare the results (exported as json), example:
🆕 Changelog