diff options
| author | Martin Hořeňovský | 2023-04-10 15:03:29 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-05-01 13:21:41 +0200 |
| commit | fe64c28925d31292516ba0a172870e7deb3baad6 (patch) | |
| tree | d351b3a4f89a2ede0e5383c48072bf99c3b072dc /tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp | |
| parent | 7d07efc92b626da9d03223a3b5cfd5f80b7cc377 (diff) | |
| download | catch3-fe64c28925d31292516ba0a172870e7deb3baad6.tar.gz | |
Reduce compilation costs of benchmarks
We replaced some simple std::algorithm usage by loops, and reduced
header inclusion.
Diffstat (limited to 'tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp')
| -rw-r--r-- | tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp b/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp index 96c0977b..fa9f8e2e 100644 --- a/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp @@ -22,6 +22,8 @@ #include <catch2/benchmark/detail/catch_benchmark_function.hpp> #include <catch2/benchmark/detail/catch_estimate_clock.hpp> +#include <numeric> + namespace { struct manual_clock { public: |