From 93115619c23bb41fd24b0090cb6adec501edaced Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sun, 27 Jul 2008 11:39:47 +0000 Subject: * updated benchmark files according to recent renamings * various improvements in BTL including trisolver and cholesky bench --- .../generic_bench/timers/portable_perf_analyzer.hh | 16 ++++--- bench/btl/generic_bench/timers/portable_timer.hh | 54 ++++++++++++++++++---- 2 files changed, 53 insertions(+), 17 deletions(-) (limited to 'bench/btl/generic_bench/timers') diff --git a/bench/btl/generic_bench/timers/portable_perf_analyzer.hh b/bench/btl/generic_bench/timers/portable_perf_analyzer.hh index d716154fd..d0fe95ce0 100644 --- a/bench/btl/generic_bench/timers/portable_perf_analyzer.hh +++ b/bench/btl/generic_bench/timers/portable_perf_analyzer.hh @@ -38,16 +38,16 @@ public: MESSAGE("Portable_Perf_Analyzer Dtor"); }; - - BTL_DONT_INLINE double eval_mflops(int size) { Action action(size); - - double time_action = time_calculate(action); + double time_action = 0; + action.initialize(); + time_action = time_calculate(action); while (time_action < MIN_TIME) { + //Action action(size); _nb_calc *= 2; action.initialize(); time_action = time_calculate(action); @@ -56,8 +56,10 @@ public: // optimize for (int i=1; i