Celero
Public Member Functions | Public Attributes | List of all members
NoPackingFixture Class Reference
Inheritance diagram for NoPackingFixture:
Inheritance graph
[legend]
Collaboration diagram for NoPackingFixture:
Collaboration graph
[legend]

Public Member Functions

void setUp (const celero::TestFixture::ExperimentValue *const x) override
 Before each run, build a vector of random integers.
 
void tearDown () override
 Called after test completion to destroy the fixture. More...
 
- Public Member Functions inherited from CompressBoolsFixture
std::vector< std::shared_ptr< celero::TestFixture::ExperimentValue > > getExperimentValues () const override
 Allows a test fixture to supply values to use for experiments. More...
 
- Public Member Functions inherited from celero::TestFixture
 TestFixture ()
 Default Constructor.
 
virtual ~TestFixture ()
 Virtual destructor for inheritance.
 
virtual double getExperimentValueResultScale () const
 Provide a units result scale of each experiment value. More...
 
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 uint64_t run (uint64_t threads, uint64_t iterations, const celero::TestFixture::ExperimentValue *const experimentValue)
 
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::unique_ptr< bool[]> outputValues
 
- Public Attributes inherited from CompressBoolsFixture
size_t arrayLength {0}
 
std::unique_ptr< int[]> inputValues
 
std::unique_ptr< bool[]> referenceValues
 

Additional Inherited Members

- Public Types inherited from celero::TestFixture
enum  Constants : int64_t { NoProblemSpaceValue = std::numeric_limits<int64_t>::min() }
 
- Static Public Attributes inherited from CompressBoolsFixture
static const int64_t MaxArrayLength {5000000}
 
static const int64_t BenchmarkSteps {5}
 
- 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...
 

Member Function Documentation

◆ tearDown()

void NoPackingFixture::tearDown ( )
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.


The documentation for this class was generated from the following file: