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

summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/only_include.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-05-07 13:42:01 +0200
committerMartin Hořeňovský2026-05-07 20:27:09 +0200
commit5f47160bb2f5e6fb07600ef79207e4e30c4fd3fb (patch)
tree1651b8f105e1f3a358ded3a240ab89883a7e23fc /benchmarks/only_include.cpp
parente83528c6eb757b263f71c0672358e8632d8f453f (diff)
downloadcatch3-5f47160bb2f5e6fb07600ef79207e4e30c4fd3fb.tar.gz
Add benchmark for catch_test_macros.hpp inclusion
Diffstat (limited to 'benchmarks/only_include.cpp')
-rw-r--r--benchmarks/only_include.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/benchmarks/only_include.cpp b/benchmarks/only_include.cpp
new file mode 100644
index 00000000..d82cbcc3
--- /dev/null
+++ b/benchmarks/only_include.cpp
@@ -0,0 +1,16 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
+/**\file
+ * "empty" include of catch_test_macros.hpp
+ *
+ * This file does only one thing: include `catch2/catch_test_macros.hpp`,
+ * so that we can measure the compilation cost of the header.
+ */
+
+#include <catch2/catch_test_macros.hpp>