Carbo Kuo
|
f5096c7a94
|
Add benchmark binary to Bazel BUILD.
To build it, run:
bazel build --compilation_mode=opt //:benchmark
To run the benchmark, run:
bazel-bin/benchmark benchmarks/data/canada.txt
Result from my computer:
read 111126 lines
=== trial 1 ===
fast_double_parser 1315.70 MB/s
strtod 722.10 MB/s
abslfromch 810.26 MB/s
absl 799.89 MB/s
double-conv 396.05 MB/s
=== trial 2 ===
fast_double_parser 1416.58 MB/s
strtod 751.43 MB/s
abslfromch 841.83 MB/s
absl 838.71 MB/s
double-conv 415.33 MB/s
|
2024-10-31 10:39:29 -04:00 |
|