Loading Benchmark/Benchmark.cpp +6 −6 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ const string INDECIES_FILE = "indecies.txt"; const string DISTRIBUTION_FILE = "distribution.txt"; constexpr Index TEST_ITERATIONS = 20; constexpr Index BENCHMARK_VERBOSE = 1; constexpr Index BENCHMARK_VERBOSE = 0; using Device = TNL::Devices::Host; using LinearOcreee = TNL::Meshes::LinearOctree::AdaptiveGrid< Real, TNL::Devices::Host, Index >; Loading Loading @@ -138,7 +138,7 @@ refineGrid( AbsOctree& grid, const vector< TNL::Containers::StaticArray< 3, Real Results benchmarkRefinement( const vector< TNL::Containers::StaticArray< 3, Real > >& coords ) { ofstream output( "refine.txt" ); ofstream output( "/dev/null" ); Benchmark b( output, TEST_ITERATIONS, BENCHMARK_VERBOSE ); auto linear = [ & ]() Loading @@ -161,7 +161,7 @@ benchmarkRefinement( const vector< TNL::Containers::StaticArray< 3, Real > >& co Results benchmarkSearching( const AbsOctree& linearOctree, const AbsOctree& classicOctree, const vector< Index >& indecies ) { ofstream output( "searching.txt" ); ofstream output( "/dev/null" ); Benchmark b( output, TEST_ITERATIONS, BENCHMARK_VERBOSE ); auto linear = [ & ]() Loading Loading @@ -196,7 +196,7 @@ benchmarkSearchingNotRefined( const AbsOctree& linearOctree, for( const auto& coord : coords ) indecies.push_back( *linearOctree.getCellByCoordinates( coord ) ); ofstream output( "searching_noref.txt" ); ofstream output( "/dev/null" ); Benchmark b( output, TEST_ITERATIONS, BENCHMARK_VERBOSE ); auto linear = [ & ]() Loading Loading @@ -225,7 +225,7 @@ benchmarkSearchingNotRefined( const AbsOctree& linearOctree, Results benchmarkSearchingAll( const AbsOctree& linearOctree, const AbsOctree& classicOctre, const vector< Index >& indecies ) { ofstream output( "searching_all.txt" ); ofstream output( "/dev/null" ); Benchmark b( output, TEST_ITERATIONS, BENCHMARK_VERBOSE ); auto linear = [ & ]() Loading Loading @@ -260,7 +260,7 @@ benchmarkSearchingAllNotRefined( const AbsOctree& linearOctree, for( const auto& coord : coords ) indecies.push_back( *linearOctree.getCellByCoordinates( coord ) ); ofstream output( "searching_all_noref.txt" ); ofstream output( "/dev/null" ); Benchmark b( output, TEST_ITERATIONS, BENCHMARK_VERBOSE ); auto linear = [ & ]() Loading Loading
Benchmark/Benchmark.cpp +6 −6 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ const string INDECIES_FILE = "indecies.txt"; const string DISTRIBUTION_FILE = "distribution.txt"; constexpr Index TEST_ITERATIONS = 20; constexpr Index BENCHMARK_VERBOSE = 1; constexpr Index BENCHMARK_VERBOSE = 0; using Device = TNL::Devices::Host; using LinearOcreee = TNL::Meshes::LinearOctree::AdaptiveGrid< Real, TNL::Devices::Host, Index >; Loading Loading @@ -138,7 +138,7 @@ refineGrid( AbsOctree& grid, const vector< TNL::Containers::StaticArray< 3, Real Results benchmarkRefinement( const vector< TNL::Containers::StaticArray< 3, Real > >& coords ) { ofstream output( "refine.txt" ); ofstream output( "/dev/null" ); Benchmark b( output, TEST_ITERATIONS, BENCHMARK_VERBOSE ); auto linear = [ & ]() Loading @@ -161,7 +161,7 @@ benchmarkRefinement( const vector< TNL::Containers::StaticArray< 3, Real > >& co Results benchmarkSearching( const AbsOctree& linearOctree, const AbsOctree& classicOctree, const vector< Index >& indecies ) { ofstream output( "searching.txt" ); ofstream output( "/dev/null" ); Benchmark b( output, TEST_ITERATIONS, BENCHMARK_VERBOSE ); auto linear = [ & ]() Loading Loading @@ -196,7 +196,7 @@ benchmarkSearchingNotRefined( const AbsOctree& linearOctree, for( const auto& coord : coords ) indecies.push_back( *linearOctree.getCellByCoordinates( coord ) ); ofstream output( "searching_noref.txt" ); ofstream output( "/dev/null" ); Benchmark b( output, TEST_ITERATIONS, BENCHMARK_VERBOSE ); auto linear = [ & ]() Loading Loading @@ -225,7 +225,7 @@ benchmarkSearchingNotRefined( const AbsOctree& linearOctree, Results benchmarkSearchingAll( const AbsOctree& linearOctree, const AbsOctree& classicOctre, const vector< Index >& indecies ) { ofstream output( "searching_all.txt" ); ofstream output( "/dev/null" ); Benchmark b( output, TEST_ITERATIONS, BENCHMARK_VERBOSE ); auto linear = [ & ]() Loading Loading @@ -260,7 +260,7 @@ benchmarkSearchingAllNotRefined( const AbsOctree& linearOctree, for( const auto& coord : coords ) indecies.push_back( *linearOctree.getCellByCoordinates( coord ) ); ofstream output( "searching_all_noref.txt" ); ofstream output( "/dev/null" ); Benchmark b( output, TEST_ITERATIONS, BENCHMARK_VERBOSE ); auto linear = [ & ]() Loading