![]() |
|
PhoenixMicroBenchmark
1.0.1
Toolset for function micro-benchmarking
|
Include dependency graph for micro_benchmark_ns.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Typedefs | |
| typedef std::chrono::steady_clock | HiPeClock |
| typedef std::chrono::time_point< std::chrono::steady_clock > | HiPeTime |
| typedef std::chrono::nanoseconds | NanoSecs |
Functions | |
| template<typename _Callable, typename... _Args> | |
| void | micro_benchmarkAutoNs (double &ellapsedTimeNs, double &ellapsedTimeErrorNs, _Callable &&__f, _Args &&... __args) |
| Do the micro benchmarking of a given function and gives performance results in ns. | |
| template<typename _Callable, typename... _Args> | |
| void | micro_benchmarkAutoNs (double &ellapsedTimeNs, double &ellapsedTimeErrorNs, double &timePerElement, double &timeErrorPerElement, size_t nbElement, _Callable &&__f, _Args &&... __args) |
| Do the micro benchmarking of a given function and gives performance results in ns. | |
| template<typename _Callable, typename... _Args> | |
| void | micro_benchmarkAutoNsPrint (const std::string &testName, size_t nbElement, _Callable &&__f, _Args &&... __args) |
| Do the micro benchmarking of a given function and gives performance results in ns and print the result. | |
| template<typename _Callable, typename... _Args> | |
| void | micro_benchmarkNs (double &ellapsedTimeNs, double &ellapsedTimeErrorNs, double &timePerElement, double &timeErrorPerElement, size_t nbTestPerf, size_t nbCallPerTest, size_t nbElement, _Callable &&__f, _Args &&... __args) |
| Do the micro benchmarking of a given function and gives performance results in ns. | |
| template<typename _Callable, typename... _Args> | |
| void | micro_benchmarkNs (double &ellapsedTimeNs, double &ellapsedTimeErrorNs, size_t nbTestPerf, size_t nbCallPerTest, _Callable &&__f, _Args &&... __args) |
| Do the micro benchmarking of a given function and gives performance results in ns. | |
| template<typename _Callable, typename... _Args> | |
| void | micro_benchmarkNsPrint (const std::string &testName, size_t nbTestPerf, size_t nbCallPerTest, size_t nbElement, _Callable &&__f, _Args &&... __args) |
| Do the micro benchmarking of a given function and gives performance results in ns and print the result. | |
| HiPeTime | phoenix_getTime () |
| Get the current time. | |
| typedef std::chrono::steady_clock HiPeClock |
Definition at line 12 of file micro_benchmark_ns.h.
| typedef std::chrono::time_point<std::chrono::steady_clock> HiPeTime |
Definition at line 16 of file micro_benchmark_ns.h.
| typedef std::chrono::nanoseconds NanoSecs |
Definition at line 13 of file micro_benchmark_ns.h.
| void micro_benchmarkAutoNs | ( | double & | ellapsedTimeNs, |
| double & | ellapsedTimeErrorNs, | ||
| _Callable && | __f, | ||
| _Args &&... | __args ) |
Do the micro benchmarking of a given function and gives performance results in ns.
| [out] | ellapsedTimeNs | : ellapsed time in ns |
| [out] | ellapsedTimeErrorNs | : error on the ellapsed time in ns |
| __f | : function to be called and benchmarked | |
| __args | : parameter of the function to be benchmarked This function tries to find automatically a relevant performance measurement |
Definition at line 81 of file micro_benchmark_ns_impl.h.
References micro_benchmarkNs(), and PHOENIX_MINIMUM_TIME_NS.
Referenced by micro_benchmarkAutoNs(), and micro_benchmarkAutoNsPrint().
Here is the call graph for this function:
Here is the caller graph for this function:| void micro_benchmarkAutoNs | ( | double & | ellapsedTimeNs, |
| double & | ellapsedTimeErrorNs, | ||
| double & | timePerElement, | ||
| double & | timeErrorPerElement, | ||
| size_t | nbElement, | ||
| _Callable && | __f, | ||
| _Args &&... | __args ) |
Do the micro benchmarking of a given function and gives performance results in ns.
| [out] | ellapsedTimeNs | : ellapsed time in ns |
| [out] | ellapsedTimeErrorNs | : error on the ellapsed time in ns |
| [out] | timePerElement | : time per element in ns |
| [out] | timeErrorPerElement | : error of time per element in ns |
| nbElement | : number of element treated by the function __f | |
| __f | : function to be called and benchmarked | |
| __args | : parameter of the function to be benchmarked |
Definition at line 148 of file micro_benchmark_ns_impl.h.
References micro_benchmarkAutoNs().
Here is the call graph for this function:| void micro_benchmarkAutoNsPrint | ( | const std::string & | testName, |
| size_t | nbElement, | ||
| _Callable && | __f, | ||
| _Args &&... | __args ) |
Do the micro benchmarking of a given function and gives performance results in ns and print the result.
| testName | : name of the performance test |
| nbElement | : number of element treated by the function __f |
| __f | : function to be called and benchmarked |
| __args | : parameter of the function to be benchmarked |
Definition at line 181 of file micro_benchmark_ns_impl.h.
References micro_benchmarkAutoNs().
Here is the call graph for this function:| void micro_benchmarkNs | ( | double & | ellapsedTimeNs, |
| double & | ellapsedTimeErrorNs, | ||
| double & | timePerElement, | ||
| double & | timeErrorPerElement, | ||
| size_t | nbTestPerf, | ||
| size_t | nbCallPerTest, | ||
| size_t | nbElement, | ||
| _Callable && | __f, | ||
| _Args &&... | __args ) |
Do the micro benchmarking of a given function and gives performance results in ns.
| [out] | ellapsedTimeNs | : ellapsed time in ns |
| [out] | ellapsedTimeErrorNs | : error on the ellapsed time in ns |
| [out] | timePerElement | : time per element in ns |
| [out] | timeErrorPerElement | : error of time per element in ns |
| nbTestPerf | : number of performance test | |
| nbCallPerTest | : number of calls per performance test | |
| nbElement | : number of element treated by the function __f | |
| __f | : function to be called and benchmarked | |
| __args | : parameter of the function to be benchmarked |
Definition at line 129 of file micro_benchmark_ns_impl.h.
References micro_benchmarkNs().
Here is the call graph for this function:| void micro_benchmarkNs | ( | double & | ellapsedTimeNs, |
| double & | ellapsedTimeErrorNs, | ||
| size_t | nbTestPerf, | ||
| size_t | nbCallPerTest, | ||
| _Callable && | __f, | ||
| _Args &&... | __args ) |
Do the micro benchmarking of a given function and gives performance results in ns.
| [out] | ellapsedTimeNs | : ellapsed time in ns |
| [out] | ellapsedTimeErrorNs | : error on the ellapsed time in ns |
| nbTestPerf | : number of performance test | |
| nbCallPerTest | : number of calls per performance test | |
| __f | : function to be called and benchmarked | |
| __args | : parameter of the function to be benchmarked |
Definition at line 45 of file micro_benchmark_ns_impl.h.
References micro_benchmarkComputeTime(), micro_benchmarkVecToMap(), phoenix_doNotOptimize(), and phoenix_getTime().
Referenced by micro_benchmarkAutoNs(), micro_benchmarkNs(), and micro_benchmarkNsPrint().
Here is the call graph for this function:
Here is the caller graph for this function:| void micro_benchmarkNsPrint | ( | const std::string & | testName, |
| size_t | nbTestPerf, | ||
| size_t | nbCallPerTest, | ||
| size_t | nbElement, | ||
| _Callable && | __f, | ||
| _Args &&... | __args ) |
Do the micro benchmarking of a given function and gives performance results in ns and print the result.
| testName | : name of the performance test |
| nbTestPerf | : number of performance test |
| nbCallPerTest | : number of calls per performance test |
| nbElement | : number of element treated by the function __f |
| __f | : function to be called and benchmarked |
| __args | : parameter of the function to be benchmarked |
Definition at line 166 of file micro_benchmark_ns_impl.h.
References micro_benchmarkNs().
Here is the call graph for this function:| HiPeTime phoenix_getTime | ( | ) |
Get the current time.
Definition at line 12 of file micro_benchmark_ns.cpp.
Referenced by micro_benchmarkNs().
Here is the caller graph for this function: