diff options
author | Tibor Frank <tifrank@cisco.com> | 2021-10-06 11:51:39 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2021-10-18 10:53:26 +0200 |
commit | 3b5495d0943283e96ce5fa23c0b1f31846ca0f6f (patch) | |
tree | 3502363a47c3b83ef02a835ad2ab1dbea8479020 /resources/tools/presentation/generator_cpta.py | |
parent | 96734fb1a33eb8dead325461a131f11b36c1bcfc (diff) |
Trending: Add TRex ndrpdr tests
Change-Id: I7b968a4747390224d89cdaf7407c10c9a4108deb
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_cpta.py')
-rw-r--r-- | resources/tools/presentation/generator_cpta.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/resources/tools/presentation/generator_cpta.py b/resources/tools/presentation/generator_cpta.py index 7f4c050b29..5cc56fd965 100644 --- a/resources/tools/presentation/generator_cpta.py +++ b/resources/tools/presentation/generator_cpta.py @@ -217,9 +217,6 @@ def _generate_trending_traces(in_data, job_name, build_info, else: hover_str = hover_str.replace(u"<stdev>", u"") if incl_tests == u"pdr-lat": - hover_str = hover_str.replace( - u"throughput [Mpps]", u"latency [s]" - ) hover_str = hover_str.replace(u"<val>", u"{value:.1e}") else: hover_str = hover_str.replace(u"<val>", u"{value:.3f}") @@ -227,7 +224,7 @@ def _generate_trending_traces(in_data, job_name, build_info, hover_str = hover_str.replace(u"[Mpps]", u"[Mcps]").\ replace(u"throughput", u"connection rate") if u"dpdk" in job_name: - hover_text.append(hover_str.format( + hover_str = hover_str.format( date=date, property=u"average" if incl_tests == u"mrr" else u"throughput", value=data_y_mpps[index], @@ -236,9 +233,9 @@ def _generate_trending_traces(in_data, job_name, build_info, test=incl_tests, period=u"weekly", build_nr=str_key, - testbed=build_info[job_name][str_key][2])) + testbed=build_info[job_name][str_key][2]) elif u"vpp" in job_name: - hover_text.append(hover_str.format( + hover_str = hover_str.format( date=date, property=u"average" if incl_tests == u"mrr" else u"throughput", value=data_y_mpps[index], @@ -247,8 +244,12 @@ def _generate_trending_traces(in_data, job_name, build_info, test=incl_tests, period=u"daily" if incl_tests == u"mrr" else u"weekly", build_nr=str_key, - testbed=build_info[job_name][str_key][2])) - + testbed=build_info[job_name][str_key][2]) + if incl_tests == u"pdr-lat": + hover_str = hover_str.replace( + u"throughput [Mpps]", u"latency [s]" + ) + hover_text.append(hover_str) xaxis.append(datetime(int(date[0:4]), int(date[4:6]), int(date[6:8]), int(date[9:11]), int(date[12:]))) |