diff --git a/Orthtree/benchmark/Orthtree/construction.cpp b/Orthtree/benchmark/Orthtree/construction.cpp index ca7c5100003..de2232f5ed2 100644 --- a/Orthtree/benchmark/Orthtree/construction.cpp +++ b/Orthtree/benchmark/Orthtree/construction.cpp @@ -26,6 +26,7 @@ typedef Kd_tree_search::Tree Kdtree; using std::chrono::high_resolution_clock; using std::chrono::duration_cast; using std::chrono::microseconds; +using std::chrono::milliseconds; int main(int argc, char **argv) { @@ -43,7 +44,7 @@ int main(int argc, char **argv) { auto points = generate(num_points); auto octreePoints = points; - auto octreeTime = bench( + auto octreeTime = bench( [&] { // Build the tree Octree octree(octreePoints, octreePoints.point_map()); @@ -52,7 +53,7 @@ int main(int argc, char **argv) { ); auto kdtreePoints = points; - auto kdtreeTime = bench( + auto kdtreeTime = bench( [&] { // Build the tree Kdtree kdtree(kdtreePoints.points().begin(), kdtreePoints.points().end()); diff --git a/Orthtree/benchmark/Orthtree/plot_construction_benchmark.p b/Orthtree/benchmark/Orthtree/plot_construction_benchmark.p index 4bd6db976ce..5ea077904ac 100644 --- a/Orthtree/benchmark/Orthtree/plot_construction_benchmark.p +++ b/Orthtree/benchmark/Orthtree/plot_construction_benchmark.p @@ -10,8 +10,8 @@ set style data lines set title 'Time to construct a tree from points' set xlabel "Number of points" -set ylabel "Time (us)" +set ylabel "Time (ms)" set key autotitle columnhead set datafile separator "," -plot for [col=2:3] 'construction_benchmark.csv' using 1:col +plot for [col=2:10] 'construction_benchmark.csv' using 1:col