|
Evo C++ Library v0.5.1
|
Evo simple micro benchmarking. More...
Go to the source code of this file.
Classes | |
| class | Benchmark |
| Micro benchmarking class. More... | |
Namespaces | |
| evo | |
| Evo C++ Library namespace. | |
Macros | |
| #define | EVO_BENCH_RUN(F) bench.run(#F, F) |
| Shortcut for running a benchmark on given function or functor. More... | |
| #define | EVO_BENCH_RUN2(F) { String evo_bench_name_(#F); F.get_name(evo_bench_name_); bench.run(evo_bench_name_, F); } |
| Shortcut for running a benchmark on given parameterized functor. More... | |
| #define | EVO_BENCH_SETUP(F, WARMUP) Benchmark bench(0, WARMUP); bench.scale(F) |
| Shortcut setting up a Benchmark instance. More... | |
| #define | INCL_evo_benchmark_h |
Evo simple micro benchmarking.
| #define EVO_BENCH_RUN | ( | F | ) | bench.run(#F, F) |
Shortcut for running a benchmark on given function or functor.
| F | Function or functor to benchmark – passed to Benchmark::run(), also used for the benchmark name |
| #define EVO_BENCH_RUN2 | ( | F | ) | { String evo_bench_name_(#F); F.get_name(evo_bench_name_); bench.run(evo_bench_name_, F); } |
Shortcut for running a benchmark on given parameterized functor.
F.get_name() to add a suffix to the benchmark namevoid get_name(String&) const| F | Function or functor to benchmark – passed to Benchmark::run(), also used for the benchmark name |
| #define EVO_BENCH_SETUP | ( | F, | |
| WARMUP | |||
| ) | Benchmark bench(0, WARMUP); bench.scale(F) |
Shortcut setting up a Benchmark instance.
| F | Function or functor to use to setup scale (for repeat count) – passed to Benchmark::scale() |
| WARMUP | Warmup count to use (passed to Benchmark constructor), use 0 for default |
| #define INCL_evo_benchmark_h |
1.8.13