Lumiera
0.pre.03
»edit your freedom«
|
Go to the source code of this file.
Helpers and wrappers so simplify usage of micobenchmark.hpp.
Notably the benchmark functions expect the actual »test subject« as a function or lambda with signature size_t(size_t)
. The argument will be the loop index and the result value will be added into a checksum, which also ensures that the optimiser can not unroll the benchmark loop. However, in practical use this strict requirement for the signature turned out as a nuisance; this header provides some automatic adaption
size_t
)void(void)
Definition in file microbenchmark-adaptor.hpp.
Functions | |
template<typename FUN > | |
decltype(auto) | adapted4benchmark (FUN &&fun) |
Adapter to expose the signature size_t(size_t) from any suitable source functor or lambda. More... | |
Namespaces | |
lib | |
Implementation namespace for support and library code. | |
|
inline |
Adapter to expose the signature size_t(size_t)
from any suitable source functor or lambda.
void(void)
Definition at line 158 of file microbenchmark-adaptor.hpp.