From bb1a7058e8bbcbe998fdfd8dd5ed46e13fb90db7 Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Tue, 15 Jun 2021 14:24:26 +0200 Subject: Report: Add vsap Change-Id: I3e8719ab2da0d9b4ae1b24c6b8479724064c8dce Signed-off-by: Tibor Frank --- resources/tools/presentation/generator_plots.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'resources/tools/presentation/generator_plots.py') diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index fb1b4734cf..8161a5a566 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -606,6 +606,19 @@ def plot_perf_box_name(plot, input_data): ) test_type = u"HOSTSTACK" + elif test[u"type"] in (u"LDP_NGINX",): + if u"TCP_CPS" in test[u"tags"]: + test_type = u"VSAP_CPS" + y_vals[test[u"parent"]].append( + test[u"result"][u"cps"] / 1e6 + ) + elif u"TCP_RPS" in test[u"tags"]: + test_type = u"VSAP_RPS" + y_vals[test[u"parent"]].append( + test[u"result"][u"rps"] / 1e6 + ) + else: + continue else: continue @@ -662,6 +675,12 @@ def plot_perf_box_name(plot, input_data): if layout.get(u"title", None): if test_type in (u"HOSTSTACK", ): layout[u"title"] = f"Bandwidth: {layout[u'title']}" + elif test_type == u"VSAP_CPS": + layout[u"title"] = f"CPS: {layout[u'title']}" + layout[u"yaxis"][u"title"] = u"Connection Rate [Mcps]" + elif test_type == u"VSAP_RPS": + layout[u"title"] = f"RPS: {layout[u'title']}" + layout[u"yaxis"][u"title"] = u"Connection Rate [Mrps]" else: layout[u"title"] = f"Throughput: {layout[u'title']}" if y_max: -- cgit 1.2.3-korg