Fix error in sut throughput measurement 28/72428/1
authorLuc Provoost <luc.provoost@intel.com>
Thu, 22 Apr 2021 07:17:36 +0000 (09:17 +0200)
committerLuc Provoost <luc.provoost@intel.com>
Thu, 22 Apr 2021 07:17:36 +0000 (09:17 +0200)
In the fomula to calculate the sut throughput measurement, we used the
frequency of the wrong machine: the generator. This issue showed up when
testing with generator and sut on a different type of compute node, with
different processor frequency.

Change-Id: Ib42bb8a30924d6bc6bb2773aed5dcc9145bb50fc
Signed-off-by: Luc Provoost <luc.provoost@intel.com>
VNFs/DPPD-PROX/helper-scripts/rapid/rapid_test.py

index 8f3a9d8..36a9f78 100644 (file)
@@ -309,7 +309,7 @@ class RapidTest(object):
                 if self.sut_machine!=None:
                     t3_sut_rx, t3_sut_non_dp_rx, t3_sut_tx, t3_sut_non_dp_tx, t3_sut_drop, t3_sut_tx_fail, t3_sut_tsc, sut_tsc_hz = self.sut_machine.core_stats()
                     if t3_sut_tsc != t2_sut_tsc:
-                        single_sut_core_measurement_duration = (t3_sut_tsc - t2_sut_tsc) * 1.0 / tsc_hz  # time difference between the 2 measurements, expressed in seconds.
+                        single_sut_core_measurement_duration = (t3_sut_tsc - t2_sut_tsc) * 1.0 / sut_tsc_hz  # time difference between the 2 measurements, expressed in seconds.
                         tot_sut_core_measurement_duration = tot_sut_core_measurement_duration + single_sut_core_measurement_duration
                         tot_sut_rx += t3_sut_rx - t2_sut_rx
                         tot_sut_non_dp_rx += t3_sut_non_dp_rx - t2_sut_non_dp_rx