Benchmark which performs an ensemble of runs. More...
Classes | |
struct | PhaseResult |
Statistics from a single phase, init or run. More... | |
struct | Result |
Results from initialization and execution of a single run. More... | |
Public Member Functions | |
BenchSuite (ObjectFactory &factory, uint64_t pop, uint64_t total, uint64_t runs, Ptr< RandomVariableStream > eventStream, bool calRev) | |
Perform the runs for a single scheduler type. More... | |
void | Log () const |
Write the results to LOG() More... | |
Private Member Functions | |
void | Header () const |
Print the table header. More... | |
Private Attributes | |
std::vector< Result > | m_results |
Store for the run results. More... | |
std::string | m_scheduler |
Descriptive string for the scheduler. More... | |
Benchmark which performs an ensemble of runs.
Definition at line 179 of file bench-scheduler.cc.
BenchSuite::BenchSuite | ( | ObjectFactory & | factory, |
uint64_t | pop, | ||
uint64_t | total, | ||
uint64_t | runs, | ||
Ptr< RandomVariableStream > | eventStream, | ||
bool | calRev | ||
) |
Perform the runs for a single scheduler type.
This will create and set the scheduler, then execute a priming run followed by the number of data runs requested.
Output will be in the form of a table showing performance for each run.
[in] | factory | Factory pre-configured to create the desired Scheduler. |
[in] | pop | The event population size. |
[in] | total | The total number of events to execute. |
[in] | runs | The number of replications. |
[in] | eventStream | The random stream of event delays. |
[in] | calRev | For the CalendarScheduler, whether the Reverse attribute was set. |
Definition at line 267 of file bench-scheduler.cc.
References DEB, ns3::Simulator::Destroy(), ns3::TypeId::GetName(), ns3::ObjectFactory::GetTypeId(), Bench::Run(), Bench::SetPopulation(), Bench::SetRandomStream(), ns3::Simulator::SetScheduler(), and Bench::SetTotal().
|
private |
Print the table header.
Definition at line 312 of file bench-scheduler.cc.
void BenchSuite::Log | ( | ) | const |
Write the results to LOG()
Definition at line 332 of file bench-scheduler.cc.
References ACCUMULATE, BenchSuite::Result::Log(), and LOG.
|
private |
Store for the run results.
Definition at line 243 of file bench-scheduler.cc.
|
private |
Descriptive string for the scheduler.
Definition at line 242 of file bench-scheduler.cc.