|
Celero
|


Public Member Functions | |
| std::vector< std::shared_ptr< celero::TestFixture::ExperimentValue > > | getExperimentValues () const override |
| Allows a test fixture to supply values to use for experiments. More... | |
| double | getExperimentValueResultScale () const override |
| Provide a units result scale of each experiment value. More... | |
| void | setUp (const celero::TestFixture::ExperimentValue *const experimentValue) override |
| Set up the test fixture before benchmark execution. More... | |
| void | tearDown () override |
| Called after test completion to destroy the fixture. More... | |
| void | setUp (const celero::TestFixture::ExperimentValue *const) override |
| Set up the test fixture before benchmark execution. More... | |
Public Member Functions inherited from celero::ThreadTestFixture | |
| ThreadTestFixture () | |
| Default Constructor. | |
| virtual | ~ThreadTestFixture () |
| Virtual destructor for inheritance. | |
| ThreadTestFixture (const ThreadTestFixture &)=delete | |
| ThreadTestFixture & | operator= (ThreadTestFixture const &other)=delete |
| virtual void | startThreads (uint64_t threads, uint64_t calls) |
| Start threads before benchmark execution. More... | |
| virtual void | stopThreads () |
| Called after test completion to stop threads. | |
| uint64_t | run (uint64_t threads, uint64_t calls, const celero::TestFixture::ExperimentValue *const experimentValue) override |
Public Member Functions inherited from celero::TestFixture | |
| TestFixture () | |
| Default Constructor. | |
| virtual | ~TestFixture () |
| Virtual destructor for inheritance. | |
| virtual void | onExperimentStart (const celero::TestFixture::ExperimentValue *const x) |
| Allows the text fixture to run code that will be executed once immediately before the benchmark. More... | |
| virtual void | onExperimentEnd () |
| Allows the text fixture to run code that will be executed once immediately after the benchmark. More... | |
| void | setExperimentTime (uint64_t x) |
| Internal to Celero. | |
| uint64_t | getExperimentTime () const |
| Valid inside tearDown(). | |
| void | setExperimentIterations (uint64_t x) |
| Internal to Celero. | |
| uint64_t | getExperimentIterations () const |
| Valid inside tearDown(). | |
| virtual std::vector< std::shared_ptr< UserDefinedMeasurement > > | getUserDefinedMeasurements () const |
| If you want to use user-defined measurements, override this method to return them. More... | |
| std::vector< std::string > | getUserDefinedMeasurementNames () const |
| Returns the names of all user-defined measurements in this fixture. | |
Public Attributes | |
| std::vector< char > | buffer |
| int | counter |
Additional Inherited Members | |
Public Types inherited from celero::TestFixture | |
| enum | Constants : int64_t { NoProblemSpaceValue = std::numeric_limits<int64_t>::min() } |
Protected Member Functions inherited from celero::TestFixture | |
| virtual void | UserBenchmark () |
| Executed for each operation the benchmarking test is run. | |
| virtual uint64_t | HardCodedMeasurement () const |
| Only used for baseline cases. More... | |
|
inlineoverridevirtual |
Provide a units result scale of each experiment value.
If the value is greater than 0 then additional statistic value will be printed in output - [ xxxx units/sec ]. For example for measure speed of file IO operations method might return 1024 * 1024 to get megabytes per second.
It is only guaranteed that the constructor is called prior to this function being called.
Reimplemented from celero::TestFixture.
|
inlineoverridevirtual |
Allows a test fixture to supply values to use for experiments.
This is used to create multiple runs of the same experiment and varrying the data set size, for example. The second value of the pair is an optional override for the number of iterations to be used. If zero is specified, then the default number of iterations is used.
It is only guaranteed that the constructor is called prior to this function being called.
Reimplemented from celero::TestFixture.
|
inlineoverridevirtual |
Set up the test fixture before benchmark execution.
This code is NOT included in the benchmark timing. It is executed once before all iterations are executed and between each Sample. Your experiment should NOT rely on "setUp" methods to be called before EACH experiment run, only between each sample.
| x | The celero::TestFixture::ExperimentValue for the experiment. This can be ignored if the test does not utilize experiment values. |
Reimplemented from celero::TestFixture.
|
inlineoverridevirtual |
Set up the test fixture before benchmark execution.
This code is NOT included in the benchmark timing. It is executed once before all iterations are executed and between each Sample. Your experiment should NOT rely on "setUp" methods to be called before EACH experiment run, only between each sample.
| x | The celero::TestFixture::ExperimentValue for the experiment. This can be ignored if the test does not utilize experiment values. |
Reimplemented from celero::TestFixture.
Reimplemented in StdFileFixture.
|
inlineoverridevirtual |
Called after test completion to destroy the fixture.
This code is NOT included in the benchmark timing. It is executed once after all iterations are executed and between each Sample. Your experiment should NOT rely on "tearDown" methods to be called after EACH experiment run, only between each sample.
Reimplemented from celero::TestFixture.
Reimplemented in StdFileFixture.
1.8.13