Skip to content
Snippets Groups Projects
Commit af629c13 authored by Philippe Canal's avatar Philippe Canal
Browse files

Speed up test-bench when run from ctest

parent 018c23fd
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ ROOT_LINKER_LIBRARY(Aclock Aclock.cxx G__Aclock.cxx LIBRARIES Graf Gpad)
ROOT_GENERATE_DICTIONARY(G__TBench ${CMAKE_CURRENT_SOURCE_DIR}/TBench.h MODULE TBench LINKDEF benchLinkDef.h DEPENDENCIES MathCore Tree)
ROOT_LINKER_LIBRARY(TBench TBench.cxx G__TBench.cxx LIBRARIES Core MathCore RIO Tree)
ROOT_EXECUTABLE(bench bench.cxx LIBRARIES Core TBench)
ROOT_ADD_TEST(test-bench COMMAND bench LABELS longtest)
ROOT_ADD_TEST(test-bench COMMAND bench -s LABELS longtest)
#--stress------------------------------------------------------------------------------------
ROOT_EXECUTABLE(stress stress.cxx LIBRARIES Event Core Hist RIO Tree Gpad Postscript)
......
......@@ -115,6 +115,7 @@ int main(int argc, char **argv)
{
bool writereferences = false;
bool memberwise = false;
bool shortrun = false;
TVirtualStreamerInfo::SetStreamMemberWise(kFALSE);
// by default stream objects objectwise
......@@ -126,10 +127,12 @@ int main(int argc, char **argv)
memberwise = true;
} else if (strstr(argv[a],"-r")) {
writereferences = true;
} else if (strstr(argv[a],"-s")) {
shortrun = true;
}
}
int nhits = 1000;
int nevents = 400;
int nhits = shortrun ? 10 : 1000;
int nevents = shortrun ? 40 : 400;
Double_t cptot = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment