Skip to content
Snippets Groups Projects
Commit 00b449f8 authored by Guilherme Lima's avatar Guilherme Lima :grimacing:
Browse files

[VecGeom-35] Reducing nrep parameter to speedup unit tests

BTW, the performance is pretty linear on the number of repetitions, so 4 repetitions
is good enough to get a good performance estimate.  If increasing processing time is
needed because total time is too small, increasing the number of points provides better
averaging over shape volumes, so it is better than just increasing the number of
repetitions.
parent 478a3ada
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ using namespace vecgeom;
int main(int argc, char* argv[]) {
OPTION_INT(npoints,1024);
OPTION_INT(nrep,1024);
OPTION_INT(nrep,4);
OPTION_DOUBLE(dx,1.);
OPTION_DOUBLE(dy,2.);
OPTION_DOUBLE(dz,3.);
......
......@@ -25,8 +25,8 @@ int main() {
Benchmarker tester(GeoManager::Instance().GetWorld());
tester.SetVerbosity(3);
tester.SetPointCount(1<<13);
tester.SetRepetitions(1024);
tester.SetPointCount(1<<10);
tester.SetRepetitions(4);
std::cout<<"Prepared to run benchmarker\n";
tester.RunBenchmark();
......
......@@ -16,7 +16,7 @@ using namespace vecgeom;
int main(int argc, char* argv[]) {
OPTION_INT(npoints,1024);
OPTION_INT(nrep,1024);
OPTION_INT(nrep,4);
OPTION_DOUBLE(phistart,0.);
OPTION_DOUBLE(phidelta,kTwoPi);
......
......@@ -58,8 +58,8 @@ int main(int nArgs, char **args) {
Benchmarker benchmarker(world);
benchmarker.SetVerbosity(3);
benchmarker.SetPoolMultiplier(1);
benchmarker.SetRepetitions(8192);
benchmarker.SetPointCount(128);
benchmarker.SetRepetitions(4);
benchmarker.SetPointCount(1024);
benchmarker.RunInsideBenchmark();
benchmarker.RunToInBenchmark();
benchmarker.RunToOutBenchmark();
......
......@@ -10,7 +10,7 @@ using namespace vecgeom;
int main(int argc, char* argv[]) {
OPTION_INT(npoints,1024);
OPTION_INT(nrep,1024);
OPTION_INT(nrep,4);
OPTION_DOUBLE(drmin,1.2);
OPTION_DOUBLE(drmax,3.1);
OPTION_DOUBLE(drtor,5.);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment