summaryrefslogtreecommitdiff
path: root/benchmark/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-06-01 18:06:26 +0200
committerKonstantin Käfer <mail@kkaefer.com>2016-06-06 13:50:55 +0200
commit0fe60d398e563fe01a3aabab1f39b733883c4e71 (patch)
tree4ef7c3de32883544404cb70df9d866f4c73b1ffe /benchmark/src
parentd3fe7984930fe7636d9dc36c8aa4c7ec3e891e49 (diff)
downloadqtlocation-mapboxgl-0fe60d398e563fe01a3aabab1f39b733883c4e71.tar.gz
[build] add benchmark target
Diffstat (limited to 'benchmark/src')
-rw-r--r--benchmark/src/main.cpp5
-rw-r--r--benchmark/src/mbgl/benchmark/benchmark.cpp13
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