From 7597ca61aab8ca0f9e0ed92f5c403dd549559371 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 10 Mar 2025 19:44:18 -0400 Subject: [PATCH 1/2] supporting benchmarks under Windows --- .github/workflows/vs17-ci.yml | 2 +- .github/workflows/vs17-clang-ci.yml | 2 +- benchmarks/benchmark.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/vs17-ci.yml b/.github/workflows/vs17-ci.yml index 3b59805..0fe0bbd 100644 --- a/.github/workflows/vs17-ci.yml +++ b/.github/workflows/vs17-ci.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v4 - name: configure run: | - cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_TEST=ON -DCMAKE_INSTALL_PREFIX:PATH=destination + cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_BENCHMARKS=ON -DFASTFLOAT_TEST=ON -DCMAKE_INSTALL_PREFIX:PATH=destination - name: build run: | cmake --build build --verbose --config ${{matrix.cfg}} --parallel diff --git a/.github/workflows/vs17-clang-ci.yml b/.github/workflows/vs17-clang-ci.yml index 20c1dea..f7e6ba8 100644 --- a/.github/workflows/vs17-clang-ci.yml +++ b/.github/workflows/vs17-clang-ci.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v4 - name: Configure run: | - cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -T ClangCL -DFASTFLOAT_TEST=ON + cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_BENCHMARKS=ON -T ClangCL -DFASTFLOAT_TEST=ON - name: Build run: cmake --build build --config ${{matrix.cfg}} --parallel --verbose - name: Run basic tests diff --git a/benchmarks/benchmark.cpp b/benchmarks/benchmark.cpp index 5645da2..8afcbef 100644 --- a/benchmarks/benchmark.cpp +++ b/benchmarks/benchmark.cpp @@ -1,6 +1,6 @@ +#include "event_counter.h" #if defined(__linux__) || (__APPLE__ && __aarch64__) #define USING_COUNTERS -#include "event_counter.h" #endif #include #include "fast_float/fast_float.h" From c0affad8b4feffc6430a64c93d8a1549ef7ec416 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Tue, 11 Mar 2025 09:19:28 -0400 Subject: [PATCH 2/2] Update benchmark.cpp --- benchmarks/benchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/benchmark.cpp b/benchmarks/benchmark.cpp index 8afcbef..05f1233 100644 --- a/benchmarks/benchmark.cpp +++ b/benchmarks/benchmark.cpp @@ -1,7 +1,7 @@ -#include "event_counter.h" #if defined(__linux__) || (__APPLE__ && __aarch64__) #define USING_COUNTERS #endif +#include "event_counter.h" #include #include "fast_float/fast_float.h" #include