[dts] [PATCH V1 20/27] tests/perf_test: save rfc2544 expected throughput
yufengmx
yufengx.mo at intel.com
Mon Jan 25 09:44:07 CET 2021
save rfc2544 expected throughput in json file.
Signed-off-by: yufengmx <yufengx.mo at intel.com>
---
tests/perf_test_base.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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)
--
2.21.0
More information about the dts
mailing list