Rosetta
|
#include <performance_benchmark.hh>
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... | |
Definition at line 26 of file performance_benchmark.hh.
|
inline |
Definition at line 29 of file performance_benchmark.hh.
References allBenchmarks(), and name_.
|
inlinevirtual |
Definition at line 35 of file performance_benchmark.hh.
|
staticprivate |
function for keepig record of all created benchmark classes.
Definition at line 116 of file performance_benchmark.cc.
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.
Definition at line 122 of file performance_benchmark.cc.
References basic::init(), name, numeric::random::rg(), run(), numeric::random::RandomGenerator::set_seed(), and TR.
Referenced by executeAllBenchmarks(), and executeOneBenchmark().
|
static |
Definition at line 304 of file performance_benchmark.cc.
References utility::options::OptionKeys::options::all, execute(), and TR.
Referenced by main().
|
static |
Definition at line 270 of file performance_benchmark.cc.
References utility::options::OptionKeys::options::all, execute(), name(), name, and TR.
Referenced by main().
|
static |
Generting report file in python dict format: i.e: { 'Bench1': 1.5, 'Bench2': 1.6 }
Definition at line 352 of file performance_benchmark.cc.
References utility::options::OptionKeys::options::all, name(), name, name_, app.delta_score_per_mutation::res, result_, and time_.
Referenced by main().
|
static |
Generting report file in python dict format: i.e: { 'Bench1': 1.5, 'Bench2': 1.6 }
Definition at line 332 of file performance_benchmark.cc.
References utility::options::OptionKeys::options::all, name_, app.delta_score_per_mutation::res, result_, and time_.
Referenced by main().
|
inline |
Definition at line 44 of file performance_benchmark.hh.
References name_.
Referenced by app.pyrosetta_toolkit.modules.Structure.Atom::__iadd__(), tools.CppParser.CppNamespace::__init__(), executeOneBenchmark(), tools.CppParser.CppNamespace::getChildrenContext(), tools.CppParser.CppType::getFile(), and getOneReport().
|
inlinevirtual |
Reimplemented in ScoreBenchmark, LigandDockScriptBenchmark, ShearMoverBenchmark, XMLParseBenchmark, ScoreEachBenchmark, InteractionGraphPerformanceBenchmark, FastRelaxPerformanceBenchmark, ResidueTypeBenchmark, MinimizerBenchmark< sft, TScale >, SmallMoverBenchmark, DockingBenchmark< dock, TScale >, DatabaseIOBenchmark, PDB_IOBenchmark, LigandDockBenchmark, DesignBenchmark, and OptionCollectionBenchmark.
Definition at line 38 of file performance_benchmark.hh.
|
inlinevirtual |
Reimplemented in ScoreBenchmark, LigandDockScriptBenchmark, ShearMoverBenchmark, ScoreEachBenchmark, InteractionGraphPerformanceBenchmark, ResidueTypeBenchmark, FastRelaxPerformanceBenchmark, MinimizerBenchmark< sft, TScale >, DockingBenchmark< dock, TScale >, SmallMoverBenchmark, DatabaseIOBenchmark, DesignBenchmark, LigandDockBenchmark, PDB_IOBenchmark, XMLParseBenchmark, ScoreAnalyticEtableBenchmark, and OptionCollectionBenchmark.
Definition at line 37 of file performance_benchmark.hh.
|
inlinevirtual |
Reimplemented in ScoreEachBenchmark, ScoreBenchmark, LigandDockScriptBenchmark, ShearMoverBenchmark, InteractionGraphPerformanceBenchmark, XMLParseBenchmark, ResidueTypeBenchmark, FastRelaxPerformanceBenchmark, MinimizerBenchmark< sft, TScale >, SmallMoverBenchmark, DockingBenchmark< dock, TScale >, DatabaseIOBenchmark, PDB_IOBenchmark, LigandDockBenchmark, DesignBenchmark, and OptionCollectionBenchmark.
Definition at line 39 of file performance_benchmark.hh.
|
private |
name of the benchmark, must corelate to namespace ie: core.pose
Definition at line 58 of file performance_benchmark.hh.
Referenced by getOneReport(), getReport(), name(), and PerformanceBenchmark().
|
private |
Definition at line 56 of file performance_benchmark.hh.
Referenced by getOneReport(), and getReport().
|
private |
Definition at line 57 of file performance_benchmark.hh.
Referenced by getOneReport(), and getReport().