Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-04-10 15:03:29 +0200
committerMartin Hořeňovský2023-05-01 13:21:41 +0200
commitfe64c28925d31292516ba0a172870e7deb3baad6 (patch)
treed351b3a4f89a2ede0e5383c48072bf99c3b072dc /tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp
parent7d07efc92b626da9d03223a3b5cfd5f80b7cc377 (diff)
downloadcatch3-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.cpp2
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: