// // Created by jholder on 24.10.21. // #define CATCH_CONFIG_MAIN #define CATCH_CONFIG_ENABLE_BENCHMARKING #include #include "Rod2d.hpp" #include "Integratoren2d_forceless.h" TEST_CASE("Euler - Baseline", "[benchmark]") { Rod2d rod(1.0); Simulation sim(0.01, Catch::rngSeed()); BENCHMARK("Euler without force") { Integratoren2d_forceless::Set1_Euler(rod, sim); }; BENCHMARK("Heun without force") { Integratoren2d_forceless::Set2_Heun(rod, sim); }; BENCHMARK("Exact without force") { Integratoren2d_forceless::Set3_Exact(rod, sim); }; BENCHMARK("BDAS without force") { Integratoren2d_forceless::Set4_BDAS(rod, sim); }; }