Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
Benchmark.hpp File Reference
#include <toolbox/Config.h>
Include dependency graph for Benchmark.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  toolbox::bm::Benchmark
 

Namespaces

namespace  toolbox
 
namespace  toolbox::bm
 
namespace  toolbox::bm::detail
 

Macros

#define TOOLBOX_BENCHMARK(NAME)
 
#define TOOLBOX_BENCHMARK_MAIN
 

Macro Definition Documentation

◆ TOOLBOX_BENCHMARK

#define TOOLBOX_BENCHMARK (   NAME)
Value:
namespace benchmark::NAME { \
void fn(::toolbox::bm::Context& ctx); \
::toolbox::bm::Benchmark bm{#NAME, fn}; \
} \
void benchmark::NAME::fn(toolbox::bm::Context& ctx)

Definition at line 35 of file Benchmark.hpp.

◆ TOOLBOX_BENCHMARK_MAIN

#define TOOLBOX_BENCHMARK_MAIN
Value:
int main(int argc, char* argv[]) \
{ \
return toolbox::bm::detail::main(argc, argv); \
}
int main()
Definition EchoClnt.cpp:184

Definition at line 42 of file Benchmark.hpp.