Rosetta
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::PerformanceBenchmark ( std::string  name)
inline

◆ ~PerformanceBenchmark()

virtual PerformanceBenchmark::~PerformanceBenchmark ( )
inlinevirtual

Member Function Documentation

◆ allBenchmarks()

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

function for keepig record of all created benchmark classes.

Referenced by PerformanceBenchmark().

◆ execute()

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

◆ executeAllBenchmarks()

void PerformanceBenchmark::executeAllBenchmarks ( core::Real  scaleFactor = 1)
static

References all, and TR.

Referenced by main().

◆ executeOneBenchmark()

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

References all, name, and TR.

Referenced by main().

◆ getOneReport()

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 all, cal_vdw_radius_pool::buf, name, and res.

Referenced by main().

◆ getReport()

std::string PerformanceBenchmark::getReport ( )
static

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

References all, cal_vdw_radius_pool::buf, create_a3b_hbs::i, and res.

Referenced by main().

◆ name()

std::string PerformanceBenchmark::name ( )
inline

◆ run()

virtual void PerformanceBenchmark::run ( core::Real  )
inlinevirtual

◆ setUp()

virtual void PerformanceBenchmark::setUp ( )
inlinevirtual

◆ tearDown()

virtual void PerformanceBenchmark::tearDown ( )
inlinevirtual

Member Data Documentation

◆ name_

std::string PerformanceBenchmark::name_
private

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

Referenced by name(), and PerformanceBenchmark().

◆ result_

int PerformanceBenchmark::result_
private

◆ time_

double PerformanceBenchmark::time_
private

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