From 835e1fcd131c63ee2b3b647e327b33a3bfb369e3 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sat, 2 Sep 2023 20:59:29 +0200 Subject: [Linux] Change build system; Remove CMake --- source/test/unittests/foo.bench.c | 41 --------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 source/test/unittests/foo.bench.c (limited to 'source/test/unittests/foo.bench.c') diff --git a/source/test/unittests/foo.bench.c b/source/test/unittests/foo.bench.c deleted file mode 100644 index ac1e0b5..0000000 --- a/source/test/unittests/foo.bench.c +++ /dev/null @@ -1,41 +0,0 @@ -#define KIT_TEST_FILE foo -#include "../../kit_test/bench.h" - -struct test_foo_ { - double f; -}; - -BENCHMARK("foo") { - - /* Benchmark setup. - */ - - BENCHMARK_BEGIN; - { - /* Measured code snippet. - */ - - int x = 0; - struct test_foo_ f = { 0. }; - - for (int i = 0; i < 100000; i++) { - x += (1 << 1); - x ^= i; - f.f += 0.1; - } - - DO_NOT_OPTIMIZE(x); - DO_NOT_OPTIMIZE(f); - } - BENCHMARK_END; -} - -BENCHMARK("bar") { - BENCHMARK_REPEAT(10); - BENCHMARK_REPEAT(100); - - BENCHMARK_BEGIN; - BENCHMARK_END; -} - -BENCHMARK("empty") { } -- cgit v1.2.3