aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/btl/generic_bench/timers/portable_perf_analyzer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'bench/btl/generic_bench/timers/portable_perf_analyzer.hh')
-rw-r--r--bench/btl/generic_bench/timers/portable_perf_analyzer.hh9
1 files changed, 6 insertions, 3 deletions
diff --git a/bench/btl/generic_bench/timers/portable_perf_analyzer.hh b/bench/btl/generic_bench/timers/portable_perf_analyzer.hh
index d0fe95ce0..67d3378fc 100644
--- a/bench/btl/generic_bench/timers/portable_perf_analyzer.hh
+++ b/bench/btl/generic_bench/timers/portable_perf_analyzer.hh
@@ -65,9 +65,12 @@ public:
time_action = time_action / (double(_nb_calc));
// check
- action.initialize();
- action.calculate();
- action.check_result();
+ if (BtlConfig::Instance.checkResults)
+ {
+ action.initialize();
+ action.calculate();
+ action.check_result();
+ }
return action.nb_op_base()/(time_action*1000000.0);
}