From 51e8d361f306a7276e12ebb2f8efd2c28b406cad Mon Sep 17 00:00:00 2001 From: Dmitry Anisimov Date: Mon, 29 Dec 2014 15:01:04 +0100 Subject: [PATCH] Updated examples. --- .../Barycentric_coordinates_2/Barycentric_coordinates_2.txt | 4 +--- .../Triangle_coordinates_speed_test.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) rename Barycentric_coordinates_2/{benchmark => examples}/Barycentric_coordinates_2/Triangle_coordinates_speed_test.cpp (98%) diff --git a/Barycentric_coordinates_2/doc/Barycentric_coordinates_2/Barycentric_coordinates_2.txt b/Barycentric_coordinates_2/doc/Barycentric_coordinates_2/Barycentric_coordinates_2.txt index 2317739d4ad..93af3ef9b9b 100644 --- a/Barycentric_coordinates_2/doc/Barycentric_coordinates_2/Barycentric_coordinates_2.txt +++ b/Barycentric_coordinates_2/doc/Barycentric_coordinates_2/Barycentric_coordinates_2.txt @@ -207,11 +207,9 @@ Apart from the most important requirement on barycentric coordinates to be as pr The structure of the speed test that we ran for all functions consists of computing coordinate values (or weights) at >= 1 million strictly interior points with respect to some polygon (or triangle, or segment). At each iteration of the loop we create a query point, pass it to the function, and compute all the related coordinates. We run this loop 10 times in a row, and the time presented in the log-log scale plot at the end of the section is the arithmetic mean of all trials. - The time to compute coordinates depends on many factors such as memory allocation, input kernel, output container, number of points, etc. In our tests we used the most standard C++ and \cgal features with minimum memory allocation. Therefore, the final time presented is the average time that can be expected without deep optimization but still with efficient memory allocation. It also means that it may vary depending on the usage of the package. diff --git a/Barycentric_coordinates_2/benchmark/Barycentric_coordinates_2/Triangle_coordinates_speed_test.cpp b/Barycentric_coordinates_2/examples/Barycentric_coordinates_2/Triangle_coordinates_speed_test.cpp similarity index 98% rename from Barycentric_coordinates_2/benchmark/Barycentric_coordinates_2/Triangle_coordinates_speed_test.cpp rename to Barycentric_coordinates_2/examples/Barycentric_coordinates_2/Triangle_coordinates_speed_test.cpp index 44422f1e68c..03f49382eba 100644 --- a/Barycentric_coordinates_2/benchmark/Barycentric_coordinates_2/Triangle_coordinates_speed_test.cpp +++ b/Barycentric_coordinates_2/examples/Barycentric_coordinates_2/Triangle_coordinates_speed_test.cpp @@ -38,7 +38,7 @@ using std::cout; using std::endl; using std::string; int main() { // Number of x and y coordinates together gives the number of points. - const int number_of_x_coordinates = 1000000; + const int number_of_x_coordinates = 100000; const int number_of_y_coordinates = 1000; // Number of runs to compute the arithmetic mean of the time.