mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
Merge pull request #309 from fastfloat/benchvs
supporting benchmarks under Windows
This commit is contained in:
commit
f9bed3f7b1
2
.github/workflows/vs17-ci.yml
vendored
2
.github/workflows/vs17-ci.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: configure
|
- name: configure
|
||||||
run: |
|
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
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
cmake --build build --verbose --config ${{matrix.cfg}} --parallel
|
cmake --build build --verbose --config ${{matrix.cfg}} --parallel
|
||||||
|
|||||||
2
.github/workflows/vs17-clang-ci.yml
vendored
2
.github/workflows/vs17-clang-ci.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
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
|
- name: Build
|
||||||
run: cmake --build build --config ${{matrix.cfg}} --parallel --verbose
|
run: cmake --build build --config ${{matrix.cfg}} --parallel --verbose
|
||||||
- name: Run basic tests
|
- name: Run basic tests
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#if defined(__linux__) || (__APPLE__ && __aarch64__)
|
#if defined(__linux__) || (__APPLE__ && __aarch64__)
|
||||||
#define USING_COUNTERS
|
#define USING_COUNTERS
|
||||||
#include "event_counter.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
#include "event_counter.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "fast_float/fast_float.h"
|
#include "fast_float/fast_float.h"
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user