diff mbox series

[V1,20/27] tests/perf_test: save rfc2544 expected throughput

Message ID 20210125084414.8503-21-yufengx.mo@intel.com (mailing list archive)
State Accepted
Delegated to: LIjuan Tu
Headers show
Series dts: enable IxNetwork and enhance perf testing | expand

Commit Message

yufengmx Jan. 25, 2021, 8:44 a.m. UTC
save rfc2544 expected throughput in json file.

Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
 tests/perf_test_base.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/perf_test_base.py b/tests/perf_test_base.py
index 3d5cae85..20f3e152 100644
--- a/tests/perf_test_base.py
+++ b/tests/perf_test_base.py
@@ -857,6 +857,7 @@  class PerfTestBase(object):
         return {"unit": "Mpps", "name": "Rfc2544",
                 "value": round(value[0], 3),
                 "delta": round(value[1], 3),
+                "Expected Throughput": round(value[2], 3),
                 }
 
     def __json_throughput(self, value):
@@ -1039,7 +1040,7 @@  class PerfTestBase(object):
                 else 'failed'
             js_results.append(
                 [status,
-                 [mpps, actual_rate_percent - expected_rate], actual_rate_percent,
+                 [mpps, actual_rate_percent - expected_rate, linerate], actual_rate_percent,
                  config, frame_size])
         # save data in json file
         self.__save_rfc2544_result(self.__cur_case, js_results)