summaryrefslogtreecommitdiff
path: root/cmake/benchmark-files.cmake
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2017-07-12 14:09:59 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-07-12 15:13:33 +0300
commit06719ae42f10d4152780b75173e32fb6f4bb7633 (patch)
tree4e97126b45aac0cd403adfb4a1dc621418b53769 /cmake/benchmark-files.cmake
parent40d66a84b3b90d24519055e7b57d1f253d365621 (diff)
downloadqtlocation-mapboxgl-06719ae42f10d4152780b75173e32fb6f4bb7633.tar.gz
[benchmark] Add a benchmark for our dtoa implementation
Make sure it is faster than std::to_value(). And it is, by ~30% for the normal use case, and much faster when close to the double limits. util::dtoa also offers a much better precision.
Diffstat (limited to 'cmake/benchmark-files.cmake')
-rw-r--r--cmake/benchmark-files.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/benchmark-files.cmake b/cmake/benchmark-files.cmake
index 35931a6b52..6fb9a80d57 100644
--- a/cmake/benchmark-files.cmake
+++ b/cmake/benchmark-files.cmake
@@ -19,4 +19,7 @@ set(MBGL_BENCHMARK_FILES
benchmark/src/mbgl/benchmark/benchmark.cpp
benchmark/src/mbgl/benchmark/util.cpp
benchmark/src/mbgl/benchmark/util.hpp
+
+ # util
+ benchmark/util/dtoa.benchmark.cpp
)