35 int main (
int argc,
char **argv )
37 cout <<
"Starting performance tests" << endl;
38 cout <<
"Called with: ";
39 for (
int i = 0; i < argc; ++i ) {
40 cout << argv[i] <<
" ";
46 cerr <<
"Not enough arguments supplied, expected number of repetitions followed by test directives, exiting" << endl;
50 int repetitions = atoi ( argv[i++] );
53 cout <<
"Attempting to run " << argv[i] << endl;
54 tester myTester ( argv[i] );
56 for ( j = i + 1; j < argc; ++j ) {
68 cout <<
"Performance tests done" << endl;
Derived performance test classes which take parameter types as template arguments.
A basic class to be used by tests. Provides helper methods and functionality e.g. time measurements...
void writeToFile()
Write all collected information to file.
void addParameter(char *param)
Add a new parameter to the list of parameters.
int main(int argc, char **argv)
Provides a binary to run performance tests.