X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;h=8161a5a5664fd1bd1eebeced27310aaddb3e2dfd;hp=fb1b4734cfad5c1be1f15a8056b5d48e90621176;hb=bb1a7058e8bbcbe998fdfd8dd5ed46e13fb90db7;hpb=c763cfcb064e4f4acf6b8309b08d3800b9bd5331 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: