File tree Expand file tree Collapse file tree 7 files changed +162
-146
lines changed
Expand file tree Collapse file tree 7 files changed +162
-146
lines changed Original file line number Diff line number Diff line change 1+ Standard : Cpp11
2+ IndentWidth : 4
3+ AccessModifierOffset : -4
4+ UseTab : Never
5+ BinPackParameters : false
6+ BinPackArguments : false
7+ AllowShortIfStatementsOnASingleLine : true
8+ AllowShortLoopsOnASingleLine : false
9+ AllowShortBlocksOnASingleLine : true
10+ AllowShortFunctionsOnASingleLine : false
11+ AllowAllParametersOfDeclarationOnNextLine : true
12+ ConstructorInitializerAllOnOneLineOrOnePerLine : true
13+ AlwaysBreakTemplateDeclarations : true
14+ NamespaceIndentation : None
15+ PointerBindsToType : true
16+ SpacesInParentheses : false
17+ BreakBeforeBraces : Attach
18+ ColumnLimit : 0
19+ Cpp11BracedListStyle : false
Original file line number Diff line number Diff line change @@ -38,6 +38,6 @@ distclean: clean
3838 rm -f local.env
3939
4040format :
41- @echo " not implmented "
41+ ./scripts/format.sh
4242
4343.PHONY : test bench
Original file line number Diff line number Diff line change 1+ #include " ../examples/utils.hpp"
12#include < benchmark/benchmark.h>
2- #include < string>
33#include < delaunator.hpp>
4- #include " ../examples/utils.hpp "
4+ #include < string >
55
66namespace {
7- 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);
7+ void BM_45K_geojson_nodes (benchmark::State& state) {
8+ std::string points_str = utils::read_file (" ./test/test-files/osm-nodes-45331-epsg-3857.geojson" );
9+ std::vector<double > coords = utils::get_geo_json_points (points_str);
1110
12- while (state.KeepRunning ())
13- {
14- delaunator::Delaunator delaunator (coords);
15- }
11+ while (state.KeepRunning ()) {
12+ delaunator::Delaunator delaunator (coords);
1613 }
1714}
15+ } // namespace
1816
1917BENCHMARK (BM_45K_geojson_nodes)->Unit(benchmark::kMillisecond );
2018
Original file line number Diff line number Diff line change 1+ #pragma once
2+
13#include < fstream>
24#include < stdexcept>
5+ #include < string>
6+ #include < vector>
37#include " rapidjson/document.h"
48
59namespace utils {
You can’t perform that action at this time.
0 commit comments