diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-06-01 18:06:26 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-06-06 13:50:55 +0200 |
commit | 0fe60d398e563fe01a3aabab1f39b733883c4e71 (patch) | |
tree | 4ef7c3de32883544404cb70df9d866f4c73b1ffe /benchmark/src | |
parent | d3fe7984930fe7636d9dc36c8aa4c7ec3e891e49 (diff) | |
download | qtlocation-mapboxgl-0fe60d398e563fe01a3aabab1f39b733883c4e71.tar.gz |
[build] add benchmark target
Diffstat (limited to 'benchmark/src')
-rw-r--r-- | benchmark/src/main.cpp | 5 | ||||
-rw-r--r-- | benchmark/src/mbgl/benchmark/benchmark.cpp | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/benchmark/src/main.cpp b/benchmark/src/main.cpp new file mode 100644 index 0000000000..afe785140f --- /dev/null +++ b/benchmark/src/main.cpp @@ -0,0 +1,5 @@ +#include <mbgl/benchmark.hpp> + +int main(int argc, char* argv[]) { + return mbgl::runBenchmark(argc, argv); +} diff --git a/benchmark/src/mbgl/benchmark/benchmark.cpp b/benchmark/src/mbgl/benchmark/benchmark.cpp new file mode 100644 index 0000000000..d408e7c5e1 --- /dev/null +++ b/benchmark/src/mbgl/benchmark/benchmark.cpp @@ -0,0 +1,13 @@ +#include <mbgl/benchmark.hpp> + +#include <benchmark/benchmark.h> + +namespace mbgl { + +int runBenchmark(int argc, char* argv[]) { + ::benchmark::Initialize(&argc, argv); + ::benchmark::RunSpecifiedBenchmarks(); + return 0; +} + +} // namespace mbgl |