Rosetta  3.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
PerformanceBenchmark Class Reference

#include <performance_benchmark.hh>

Inheritance diagram for PerformanceBenchmark:
Inheritance graph
[legend]

Public Member Functions

 PerformanceBenchmark (std::string name)
 
virtual ~PerformanceBenchmark ()
 
virtual void setUp ()
 
virtual void run (core::Real)
 
virtual void tearDown ()
 
double execute (core::Real scaleFactor)
 
std::string name ()
 

Static Public Member Functions

static void executeOneBenchmark (std::string const &name, core::Real scaleFactor=1)
 
static void executeAllBenchmarks (core::Real scaleFactor=1)
 
static std::string getReport ()
 
static std::string getOneReport (std::string const &name)
 

Static Private Member Functions

static std::vector
< PerformanceBenchmark * > & 
allBenchmarks ()
 function for keepig record of all created benchmark classes. More...
 

Private Attributes

int result_
 
double time_
 
std::string name_
 name of the benchmark, must corelate to namespace ie: core.pose More...
 

Constructor & Destructor Documentation

PerformanceBenchmark::PerformanceBenchmark ( std::string  name)
inline

References allBenchmarks(), and name_.

virtual PerformanceBenchmark::~PerformanceBenchmark ( )
inlinevirtual

Member Function Documentation

std::vector< PerformanceBenchmark * > & PerformanceBenchmark::allBenchmarks ( )
staticprivate

function for keepig record of all created benchmark classes.

Referenced by PerformanceBenchmark().

double PerformanceBenchmark::execute ( core::Real  scaleFactor)

Execute benchmark cycle i.e.: setUp() - run() - tearDown() return number of seconds that was used to performe 'run' step.

References basic::init(), name, numeric::random::rg(), basic::options::OptionKeys::run::run, numeric::random::RandomGenerator::set_seed(), basic::options::OptionKeys::in::file::t, and TR.

Referenced by executeAllBenchmarks(), and executeOneBenchmark().

void PerformanceBenchmark::executeAllBenchmarks ( core::Real  scaleFactor = 1)
static
void PerformanceBenchmark::executeOneBenchmark ( std::string const &  name,
core::Real  scaleFactor = 1 
)
static
std::string PerformanceBenchmark::getOneReport ( std::string const &  name)
static

Generting report file in python dict format: i.e: { 'Bench1': 1.5, 'Bench2': 1.6 }

References basic::options::OptionKeys::out::path::all, name(), name, name_, app.delta_score_per_mutation::res, result_, fmt::sprintf(), and time_.

Referenced by main().

std::string PerformanceBenchmark::getReport ( )
static

Generting report file in python dict format: i.e: { 'Bench1': 1.5, 'Bench2': 1.6 }

References basic::options::OptionKeys::out::path::all, name_, app.delta_score_per_mutation::res, result_, fmt::sprintf(), and time_.

Referenced by main().

std::string PerformanceBenchmark::name ( )
inline
virtual void PerformanceBenchmark::run ( core::Real  )
inlinevirtual
virtual void PerformanceBenchmark::setUp ( )
inlinevirtual
virtual void PerformanceBenchmark::tearDown ( )
inlinevirtual

Member Data Documentation

std::string PerformanceBenchmark::name_
private

name of the benchmark, must corelate to namespace ie: core.pose

Referenced by getOneReport(), getReport(), name(), and PerformanceBenchmark().

int PerformanceBenchmark::result_
private

Referenced by getOneReport(), and getReport().

double PerformanceBenchmark::time_
private

Referenced by getOneReport(), and getReport().


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