Bitcoin Core  0.19.99
P2P Digital Currency
Classes | Namespaces | Macros | Typedefs | Variables
bench.h File Reference
#include <functional>
#include <map>
#include <string>
#include <vector>
#include <chrono>
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/stringize.hpp>
Include dependency graph for bench.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  benchmark::best_clock
 
class  benchmark::State
 
class  benchmark::BenchRunner
 
struct  benchmark::BenchRunner::Bench
 
class  benchmark::Printer
 
class  benchmark::ConsolePrinter
 
class  benchmark::PlotlyPrinter
 

Namespaces

 benchmark
 

Macros

#define BENCHMARK(n, num_iters_for_one_second)   benchmark::BenchRunner BOOST_PP_CAT(bench_, BOOST_PP_CAT(__LINE__, n))(BOOST_PP_STRINGIZE(n), n, (num_iters_for_one_second));
 

Typedefs

using benchmark::clock = best_clock::type
 
using benchmark::time_point = clock::time_point
 
using benchmark::duration = clock::duration
 
typedef std::function< void(State &)> benchmark::BenchFunction
 

Variables

const RegTestingSetup * g_testing_setup
 A pointer to the current testing setup. More...
 

Macro Definition Documentation

◆ BENCHMARK

#define BENCHMARK (   n,
  num_iters_for_one_second 
)    benchmark::BenchRunner BOOST_PP_CAT(bench_, BOOST_PP_CAT(__LINE__, n))(BOOST_PP_STRINGIZE(n), n, (num_iters_for_one_second));

Definition at line 141 of file bench.h.

Variable Documentation

◆ g_testing_setup

const RegTestingSetup* g_testing_setup

A pointer to the current testing setup.

Definition at line 18 of file bench.cpp.