20 #ifndef _BENCH_FIXED_SIZE_HH_
21 #define _BENCH_FIXED_SIZE_HH_
23 #include "utilities.h"
24 #include "function_time.hh"
26 template <
class Action>
32 double time_baseline=time_init(nb_init,
action);
39 time_baseline=time_init(nb_init,
action);
42 time_baseline=time_baseline/(double(nb_init));
44 double time_action=time_calculate(nb_calc,
action);
49 time_action=time_calculate(nb_calc,
action);
52 INFOS(
"nb_init="<<nb_init);
53 INFOS(
"nb_calc="<<nb_calc);
56 time_action=time_action/(double(nb_calc));
60 time_action=time_action-time_baseline;
62 return action.nb_op_base()/(time_action*1000000.0);