Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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)
void PerformanceBenchmark::executeAllBenchmarks ( core::Real  scaleFactor = 1)
static

References basic::options::OptionKeys::out::path::all, and TR.

Referenced by main().

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

References basic::options::OptionKeys::out::path::all, name, and TR.

Referenced by main().

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, and res.

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_, res, result_, and time_.

Referenced by main().

std::string PerformanceBenchmark::name ( )
inline

References name_.

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 getReport(), name(), and PerformanceBenchmark().

int PerformanceBenchmark::result_
private

Referenced by getReport().

double PerformanceBenchmark::time_
private

Referenced by getReport().


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