]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Remove macro and inline inflate benchmark definition directly
authorNathan Moinvaziri <nathan@nathanm.com>
Tue, 10 Mar 2026 18:40:39 +0000 (11:40 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 16 Apr 2026 09:51:21 +0000 (11:51 +0200)
test/benchmarks/benchmark_inflate.cc

index ac6ef7229f94c330a7dd94b14d5b74b5ea53a7db..2b974d9fc27ffcab987a9b31ca13a466496ddf8c 100644 (file)
@@ -160,10 +160,8 @@ public:
     }
 };
 
-#define BENCHMARK_INFLATE(name) \
-    BENCHMARK_DEFINE_F(inflate_bench, name)(benchmark::State& state) { \
-        Bench(state); \
-    } \
-    BENCHMARK_REGISTER_F(inflate_bench, name)->Arg(1)->Arg(64)->Arg(1024)->Arg(16<<10)->Arg(128<<10)->Arg(1024<<10);
-
-BENCHMARK_INFLATE(inflate_nocrc);
+BENCHMARK_DEFINE_F(inflate_bench, inflate_nocrc)(benchmark::State& state) {
+    Bench(state);
+}
+BENCHMARK_REGISTER_F(inflate_bench, inflate_nocrc)
+    ->Arg(1)->Arg(64)->Arg(1024)->Arg(16<<10)->Arg(128<<10)->Arg(1024<<10);