From a83f208cd2bdcbd25d3422aa419eeb3419faaa24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Wed, 7 Feb 2024 14:31:52 +0100 Subject: [PATCH] fix time evaluation for qdp bench --- qdp_project/src/utils/BenchmarkHelpers.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qdp_project/src/utils/BenchmarkHelpers.cpp b/qdp_project/src/utils/BenchmarkHelpers.cpp index 551ce81..05d5dac 100644 --- a/qdp_project/src/utils/BenchmarkHelpers.cpp +++ b/qdp_project/src/utils/BenchmarkHelpers.cpp @@ -126,8 +126,8 @@ void process_timings( } if (scanb_rc != 0) { - *scana_run /= scanb_rc; - *scana_wait /= scanb_rc; + *scanb_run /= scanb_rc; + *scanb_wait /= scanb_rc; } } { @@ -151,5 +151,7 @@ void process_timings( for (const auto e : INTERNAL_TIMING_VECTOR_LOAD_[AGGRJ_TIMING_INDEX]) *aggrj_load += e; *scana_load /= INTERNAL_TIMING_VECTOR_LOAD_[SCANA_TIMING_INDEX].size(); *aggrj_load /= INTERNAL_TIMING_VECTOR_LOAD_[AGGRJ_TIMING_INDEX].size(); + *scana_run -= *scana_load; + *aggrj_run -= *aggrj_run; } } \ No newline at end of file