1 #ifndef jb_testing_microbenchmark_base_hpp 2 #define jb_testing_microbenchmark_base_hpp 19 typedef std::chrono::steady_clock
clock;
21 typedef typename std::pair<int, duration>
result;
22 typedef typename std::vector<result>
results;
46 explicit summary(results
const& arg);
82 #endif // jb_testing_microbenchmark_base_hpp void typical_output(results const &r) const
Produce the results of the test in a format that works for most cases.
std::pair< int, duration > result
std::vector< result > results
std::chrono::steady_clock clock
std::ostream & operator<<(std::ostream &os, microbenchmark_base::summary const &x)
Stream the summary of a microbenchmark results in microseconds.
microbenchmark_config config_
Configure a micro-benchmark.
A simple object to contain the summary of the test results.
Refactor non-template parts of the microbenchmark template class.
void write_results(std::ostream &os, results const &r) const
Stream the detailed results.
The top-level namespace for the JayBeams library.
microbenchmark_base(microbenchmark_config const &cfg)
Constructor from a configuration.