|
rambrain
|
Base class for all performance tests which itself does not contain any parameters. More...
#include <performanceTestClasses.h>
Public Member Functions | |
| performanceTest (const char *name) | |
| Create a new performance test. More... | |
| virtual | ~performanceTest () |
| Cleanup. More... | |
| virtual void | runTests (unsigned int repetitions, const string &path="./") |
| Run this performance test with all given parameter variations and handle data collection and plotting. More... | |
| virtual void | actualTestMethod (tester &test, char **arguments, int &offset, unsigned int argumentscount)=0 |
| Contains the actual test code. More... | |
| virtual string | getComment ()=0 |
| Simple getter. More... | |
Static Public Member Functions | |
| static void | runRegisteredTests (unsigned int repetitions, const string &path="./") |
| Run all registered (and enabled) performance tests with all given parameter variations for each test. More... | |
| static void | enableTest (const string &name, bool enabled) |
| Enable/Disable a specific test case. More... | |
| static void | enableAllTests (bool enabled) |
| Enable/Disable all known test cases. More... | |
| static void | unregisterTest (const string &name) |
| Completely remove a test case from the setup. More... | |
| static void | dumpTestInfo () |
| Write infos about all registered test cases to stdout. More... | |
| static bool | runRespectiveTest (const string &name, tester &myTester, unsigned int repetitions, char **arguments, int &offset, int argumentscount) |
| Run a specific test case several times. More... | |
| static void | setDisplayPlots (bool display) |
| If the generated plots shall be immediately displayed. More... | |
Protected Member Functions | |
| virtual unsigned int | getStepsForParam (unsigned int varryParam) |
| Get the amount of steps for parameter variation. More... | |
| virtual string | getParamsString (int varryParam, unsigned int step, const string &delimiter=" ") |
| Create a string using the current parameter values. More... | |
| virtual string | getTestOutfile (int varryParam, unsigned int step) |
| Creates a string for an outfilename using the current parameter values. More... | |
| virtual void | resultToTempFile (int varryParam, unsigned int step, ofstream &file) |
| Read in average timing results from a test and write the important data to a file. More... | |
| virtual vector< string > | splitString (const string &in, char delimiter) |
| Split a string into a list of substrings. More... | |
| virtual string | generateGnuplotScript (const string &infile, const string &name, const string &xlabel, const string &ylabel, const string &title, bool log, int paramColumn) |
| Generate a gnuplot script for swapstats output plotting. More... | |
| virtual void | handleTimingInfos (int varryParam, unsigned int step, unsigned int repetitions) |
| Handles the timing informations and produces a plot. More... | |
| virtual vector< vector< string > > | getRelevantTimingParts (ifstream &in, unsigned long long start, unsigned long long end) |
| Extract timing information from a file. More... | |
| virtual void | timingInfosToFile (ofstream &out, const vector< vector< string >> &relevantTimingParts, unsigned long long &starttime) |
| Writes timing information to a file. More... | |
| virtual void | plotTimingInfos (ofstream &gnutemp, const string &outname, const string &dataFile, unsigned int measurements, unsigned int repetitions, bool linesPoints) |
| Plot timing information. More... | |
| virtual void | plotTimingHitMissInfos (ofstream &gnutemp, const string &outname, const string &dataFile, unsigned int measurements, unsigned int repetitions, bool linesPoints) |
| Plot timed hit/miss information. More... | |
| virtual string | generateMyGnuplotPlotPart (const string &file, int paramColumn)=0 |
| Create a gnuplot script for plotting test results. More... | |
Protected Attributes | |
| const char * | name |
| bool | enabled = true |
| vector< testParameterBase * > | parameters |
| vector< string > | plotParts |
| bool | plotTimingStats = true |
Static Protected Attributes | |
| static map< string, performanceTest<> * > | testClasses |
| static bool | displayPlots |
Base class for all performance tests which itself does not contain any parameters.
Definition at line 145 of file performanceTestClasses.h.
| performanceTest<>::performanceTest | ( | const char * | name | ) |
Create a new performance test.
| name | The test's name |
|
inlinevirtual |
Cleanup.
Definition at line 157 of file performanceTestClasses.h.
|
pure virtual |
Contains the actual test code.
| test | The tester class for timing collection |
| arguments | The parameters to pass to the test |
| offset | At which index the parameters start in the arguments array; Will be incremented to point behind the parameters |
| argumentscount | How many parameters |
|
static |
Write infos about all registered test cases to stdout.
|
static |
Enable/Disable all known test cases.
| enabled | Enable or disable |
|
static |
Enable/Disable a specific test case.
| name | It's name |
| enabled | Enable or disable |
|
protectedvirtual |
Generate a gnuplot script for swapstats output plotting.
| infile | Name of the file where the data is stored |
| name | Name of the output file |
| xlabel | Label of the x axis |
| ylabel | Label of the y axis |
| title | Title of the plot |
| log | If plot shall be in logscale |
| paramColumn | Column of the temp file to plot |
|
protectedpure virtual |
Create a gnuplot script for plotting test results.
| file | Infile name |
| paramColumn | Which column to plot as x axis |
|
pure virtual |
Simple getter.
|
protectedvirtual |
Create a string using the current parameter values.
| varryParam | Which parameter is stepped through |
| step | Which step it is at the moment |
| delimiter | A delimiter between the parts |
|
protectedvirtual |
Extract timing information from a file.
| in | The file |
| start | Start time |
| end | End time |
|
inlineprotectedvirtual |
Get the amount of steps for parameter variation.
| varryParam | Which parameter is asked |
Definition at line 233 of file performanceTestClasses.h.
|
protectedvirtual |
Creates a string for an outfilename using the current parameter values.
| varryParam | Which parameter is stepped through |
| step | Which step it is at the moment |
|
protectedvirtual |
Handles the timing informations and produces a plot.
| varryParam | Which parameter is stepped through |
| step | Which step it is at the moment |
| repetitions | The amount of repetitions |
|
protectedvirtual |
Plot timed hit/miss information.
| gnutemp | Outfile for gnuplot script |
| outname | Name of resulting file |
| dataFile | Name of data file |
| measurements | Amount of measurements |
| repetitions | Amount of repetitions |
| linesPoints | If points shall be added on top of lines for data points |
|
protectedvirtual |
Plot timing information.
| gnutemp | Outfile for gnuplot script |
| outname | Name of resulting file |
| dataFile | Name of data file |
| measurements | Amount of measurements |
| repetitions | Amount of repetitions |
| linesPoints | If points shall be added on top of lines for data points |
|
protectedvirtual |
Read in average timing results from a test and write the important data to a file.
| varryParam | Which parameter is stepped through |
| step | Which step it is at the moment |
| file | The outfile |
|
static |
Run all registered (and enabled) performance tests with all given parameter variations for each test.
| repetitions | The amount of repetitions for each test |
| path | Where the performancetests binary is |
|
static |
Run a specific test case several times.
| name | It's name |
| myTester | The tester class for timing collection |
| repetitions | How often to repeat the test |
| arguments | The parameters to pass to the test |
| offset | At which index the parameters start in the arguments array; Will be incremented to point behind the parameters |
| argumentscount | How many parameters |
|
virtual |
Run this performance test with all given parameter variations and handle data collection and plotting.
| repetitions | The amount of repetitions for each test |
| path | Where the performancetests binary is |
|
inlinestatic |
If the generated plots shall be immediately displayed.
| display | Display on or off |
Definition at line 223 of file performanceTestClasses.h.
|
protectedvirtual |
Split a string into a list of substrings.
| in | The string |
| delimiter | Which delimiter to use for splitting |
|
protectedvirtual |
Writes timing information to a file.
| out | The file |
| relevantTimingParts | The relevant timing data |
| starttime | Start time; Will be changed to first time in data if zero beforehand |
|
static |
Completely remove a test case from the setup.
| name | It's name |
|
staticprotected |
Definition at line 335 of file performanceTestClasses.h.
|
protected |
Definition at line 331 of file performanceTestClasses.h.
|
protected |
Definition at line 330 of file performanceTestClasses.h.
|
protected |
Definition at line 332 of file performanceTestClasses.h.
|
protected |
Definition at line 334 of file performanceTestClasses.h.
|
protected |
Definition at line 336 of file performanceTestClasses.h.
|
staticprotected |
Definition at line 333 of file performanceTestClasses.h.