File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change
1
+ We have benchmarks, please consider running them: see our README for details.
1
2
2
3
Our CI tests check formatting automating. If such a test fails, please consider running the bash script:
3
4
Original file line number Diff line number Diff line change @@ -429,8 +429,7 @@ abseil : 430.45 MB/s (+/- 2.2 %) 20.52 Mfl
429
429
fastfloat : 1042.38 MB/s (+/- 9.9 %) 49.68 Mfloat/s
430
430
```
431
431
432
- See < https://github.com/lemire/simple_fastfloat_benchmark > for our benchmarking
433
- code.
432
+ See the [ Benchmarking] ( #benchmarking ) Section for instructions on how to run our benchmarks.
434
433
435
434
## Video
436
435
@@ -486,6 +485,29 @@ You may directly download automatically generated single-header files:
486
485
487
486
< https://github.com/fastfloat/fast_float/releases/download/v7.0.0/fast_float.h >
488
487
488
+ ## Benchmarking
489
+
490
+ The project has its own benchmarks with realistic data inputs. Under Linux or macOS,
491
+ you can use it as follows if your system supports C++17:
492
+
493
+ ```
494
+ cmake -B build -D FASTFLOAT_BENCHMARKS=ON
495
+ cmake --build build
496
+ ./build/benchmarks/realbenchmark
497
+ ```
498
+
499
+ Importantly, by default, the benchmark is built in Release mode.
500
+
501
+ The instructions are similar under Windows.
502
+
503
+ Under Linux and macOS, it is recommended to run the benchmarks in a privileged manner to get access
504
+ to hardware performance counters. You may be able to do so with the ` sudo ` command
505
+ in some cases:
506
+
507
+ ```
508
+ sudo ./build/benchmarks/realbenchmark
509
+ ```
510
+
489
511
## Packages
490
512
491
513
* The fast_float library is part of the [ Conan package
You can’t perform that action at this time.
0 commit comments