mirror of https://github.com/CGAL/cgal
Add timings for each test case
This commit is contained in:
parent
7ba4b7016e
commit
ed6dea805e
|
|
@ -29,6 +29,7 @@
|
|||
#include <CGAL/Alpha_shape_3.h>
|
||||
#include <CGAL/_test_cls_periodic_3_alpha_shape_3.h>
|
||||
|
||||
#include <CGAL/Timer.h>
|
||||
|
||||
// Inexact construction types
|
||||
typedef CGAL::Exact_predicates_inexact_constructions_kernel Gt;
|
||||
|
|
@ -65,8 +66,12 @@ typedef CGAL::Alpha_shape_3<EP3DT3> EAlpha_shape_3;
|
|||
|
||||
int main()
|
||||
{
|
||||
CGAL::Timer timer;
|
||||
timer.start();
|
||||
_test_cls_alpha_shape_3<Alpha_shape_3>();
|
||||
_test_cls_alpha_shape_3_exact<EAlpha_shape_3>();
|
||||
|
||||
std::cerr << timer.time() << " sec." << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@
|
|||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
#include <CGAL/Timer.h>
|
||||
|
||||
#include <CGAL/Periodic_3_Delaunay_triangulation_3.h>
|
||||
#include <CGAL/Periodic_3_Delaunay_triangulation_traits_3.h>
|
||||
|
||||
|
|
@ -47,6 +49,8 @@ template class CGAL::Periodic_3_Delaunay_triangulation_3<PTT3>;
|
|||
#include <CGAL/_test_cls_periodic_3_delaunay_3.h>
|
||||
int main()
|
||||
{
|
||||
CGAL::Timer timer;
|
||||
timer.start();
|
||||
typedef CGAL::Periodic_3_Delaunay_triangulation_3< PTT1 > P3T3_1;
|
||||
_test_cls_periodic_3_delaunay_3( P3T3_1() );
|
||||
|
||||
|
|
@ -57,5 +61,6 @@ int main()
|
|||
// this takes too much time for the test suite.
|
||||
//_test_cls_periodic_3_delaunay_3( P3T3_3(), true );
|
||||
|
||||
std::cerr << timer.time() << " sec." << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ int main() { return 0;}
|
|||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
#include <CGAL/Timer.h>
|
||||
|
||||
#include <CGAL/Periodic_3_Delaunay_triangulation_3.h>
|
||||
#include <CGAL/Periodic_3_triangulation_traits_3.h>
|
||||
|
||||
|
|
@ -52,6 +54,8 @@ template class CGAL::Periodic_3_triangulation_3<PTT3>;
|
|||
#include <CGAL/_test_cls_periodic_3_delaunay_3.h>
|
||||
int main()
|
||||
{
|
||||
CGAL::Timer timer;
|
||||
timer.start();
|
||||
typedef CGAL::Periodic_3_Delaunay_triangulation_3< PTT1 > P3T3_1;
|
||||
_test_cls_periodic_3_delaunay_3( P3T3_1() );
|
||||
|
||||
|
|
@ -62,6 +66,7 @@ int main()
|
|||
// this takes too much time for the test suite.
|
||||
//_test_cls_periodic_3_delaunay_3( P3T3_3(), true );
|
||||
|
||||
std::cerr << timer.time() << " sec." << std::endl;
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@
|
|||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
#include <CGAL/Timer.h>
|
||||
|
||||
#include <CGAL/Periodic_3_Delaunay_triangulation_3.h>
|
||||
#include <CGAL/Periodic_3_triangulation_hierarchy_3.h>
|
||||
#include <CGAL/Periodic_3_Delaunay_triangulation_traits_3.h>
|
||||
|
|
@ -69,6 +71,8 @@ template class CGAL::Periodic_3_triangulation_hierarchy_3<PDT3>;
|
|||
#include <CGAL/_test_cls_periodic_3_delaunay_3.h>
|
||||
int main()
|
||||
{
|
||||
CGAL::Timer timer;
|
||||
timer.start();
|
||||
typedef CGAL::Periodic_3_triangulation_hierarchy_3< PDT1 > P3T3_1;
|
||||
_test_cls_periodic_3_delaunay_3( P3T3_1() );
|
||||
|
||||
|
|
@ -80,5 +84,6 @@ int main()
|
|||
// this takes too much time for the test suite.
|
||||
//_test_cls_periodic_3_delaunay_3( P3T3_3(), true );
|
||||
|
||||
std::cerr << timer.time() << " sec." << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
#include <CGAL/Timer.h>
|
||||
#include <CGAL/Periodic_3_offset_3.h>
|
||||
|
||||
typedef CGAL::Periodic_3_offset_3 Offset;
|
||||
|
|
@ -28,7 +29,10 @@ typedef CGAL::Periodic_3_offset_3 Offset;
|
|||
#include <CGAL/_test_cls_periodic_3_offset_3.h>
|
||||
int main()
|
||||
{
|
||||
CGAL::Timer timer;
|
||||
timer.start();
|
||||
_test_cls_periodic_3_offset_3( Offset() );
|
||||
|
||||
std::cerr << timer.time() << " sec." << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@
|
|||
#include <iostream>
|
||||
#include <cassert>
|
||||
|
||||
#include <CGAL/Timer.h>
|
||||
|
||||
#include <CGAL/Periodic_3_Delaunay_triangulation_3.h>
|
||||
#include <CGAL/Periodic_3_Delaunay_triangulation_traits_3.h>
|
||||
#include <CGAL/Periodic_3_triangulation_3.h>
|
||||
|
|
@ -55,6 +57,8 @@ template class CGAL::Periodic_3_triangulation_3<PDTT3>;
|
|||
|
||||
int main()
|
||||
{
|
||||
CGAL::Timer timer;
|
||||
timer.start();
|
||||
typedef CGAL::Periodic_3_triangulation_3<PDTT1> P3T3_1;
|
||||
_test_periodic_3_triangulation_3_constructors( P3T3_1() );
|
||||
typedef CGAL::Periodic_3_Delaunay_triangulation_3<PDTT1> P3DT3_1;
|
||||
|
|
@ -70,5 +74,6 @@ int main()
|
|||
// typedef CGAL::Periodic_3_Delaunay_triangulation_3<PDTT3> P3DT3_3;
|
||||
// _test_cls_periodic_3_triangulation_3( P3DT3_3(), false, true );
|
||||
|
||||
std::cerr << timer.time() << " sec." << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ int main() { return 0;}
|
|||
#include <iostream>
|
||||
#include <cassert>
|
||||
|
||||
#include <CGAL/Timer.h>
|
||||
|
||||
#include <CGAL/Periodic_3_Delaunay_triangulation_3.h>
|
||||
#include <CGAL/Periodic_3_Delaunay_triangulation_traits_3.h>
|
||||
#include <CGAL/Periodic_3_triangulation_3.h>
|
||||
|
|
@ -60,6 +62,8 @@ template class CGAL::Periodic_3_triangulation_3<PDTT3>;
|
|||
|
||||
int main()
|
||||
{
|
||||
CGAL::Timer timer;
|
||||
timer.start();
|
||||
typedef CGAL::Periodic_3_triangulation_3<PDTT1> P3T3_1;
|
||||
_test_periodic_3_triangulation_3_constructors( P3T3_1() );
|
||||
typedef CGAL::Periodic_3_Delaunay_triangulation_3<PDTT1> P3DT3_1;
|
||||
|
|
@ -75,6 +79,7 @@ int main()
|
|||
// typedef CGAL::Periodic_3_Delaunay_triangulation_3<PDTT3> P3DT3_3;
|
||||
// _test_cls_periodic_3_triangulation_3( P3DT3_3(), false, true );
|
||||
|
||||
std::cerr << timer.time() << " sec." << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
// Author(s) : Francois Rebufat
|
||||
// Manuel Caroli
|
||||
|
||||
#include <CGAL/Timer.h>
|
||||
#include <CGAL/Triangulation_data_structure_3.h>
|
||||
#include <CGAL/Periodic_3_Delaunay_triangulation_traits_3.h>
|
||||
#include <CGAL/Periodic_3_triangulation_ds_cell_base_3.h>
|
||||
|
|
@ -54,6 +55,9 @@ template class CGAL::Triangulation_data_structure_3<
|
|||
// periodic vertices and cells fulfill the requirements.
|
||||
int main()
|
||||
{
|
||||
CGAL::Timer timer;
|
||||
timer.start();
|
||||
_test_cls_periodic_3_tds_3(Tds());
|
||||
std::cerr << timer.time() << " sec." << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue