PhoenixMicroBenchmark  1.0.1
Toolset for function micro-benchmarking
Loading...
Searching...
No Matches
micro_benchmark_rdtsc.h
Go to the documentation of this file.
1/***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5****************************************/
6
7#ifndef __MICRO_BENCHMARK_RDTSC_H__
8#define __MICRO_BENCHMARK_RDTSC_H__
9
11
12template<typename _Callable, typename... _Args>
13void micro_benchmarkRdtsc(double & ellapsedTimeNs, double & ellapsedTimeErrorNs, size_t nbTestPerf, size_t nbCallPerTest,
14 _Callable&& __f, _Args&&... __args);
15
16template<typename _Callable, typename... _Args>
17void micro_benchmarkRdtsc(double & ellapsedTimeNs, double & ellapsedTimeErrorNs,
18 double & timePerElement, double & timeErrorPerElement, size_t nbTestPerf, size_t nbCallPerTest, size_t nbElement,
19 _Callable&& __f, _Args&&... __args);
20
21template<typename _Callable, typename... _Args>
22void micro_benchmarkRdtscPrint(const std::string & testName, size_t nbTestPerf, size_t nbCallPerTest, size_t nbElement, _Callable&& __f, _Args&&... __args);
23
24
26
27
28#endif
29
void micro_benchmarkRdtsc(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 cy.
void micro_benchmarkRdtscPrint(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 cy and print the resul...