We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ccec2 commit 972e94dCopy full SHA for 972e94d
bench/run.cpp
@@ -4,7 +4,7 @@
4
#include "../examples/utils.hpp"
5
6
namespace {
7
- void BM_simple(benchmark::State& state)
+ void BM_45K_geojson_nodes(benchmark::State& state)
8
{
9
std::string points_str = utils::read_file("./test/test-files/osm-nodes-45331-epsg-3857.geojson");
10
std::vector<double> coords = utils::get_geo_json_points(points_str);
@@ -16,11 +16,6 @@ namespace {
16
}
17
18
19
-int main(int argc, char* argv[])
20
-{
21
- benchmark::RegisterBenchmark("BM_simple", BM_simple);
22
- benchmark::Initialize(&argc, argv);
23
- benchmark::RunSpecifiedBenchmarks();
+BENCHMARK(BM_45K_geojson_nodes)->Unit(benchmark::kMillisecond);
24
25
- return 0;
26
-}
+BENCHMARK_MAIN();
0 commit comments