X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_tables.py;h=fd33983148e14fc1d1c2f03db6e4948bdbd62c7d;hp=a7b1500f29a14a44eb9b509081c5ec8794a1722b;hb=0a34eb9b7d4c0449c36edff7a5ab80dce76ce786;hpb=3d629c4e670186a8506bfd9f50c85453c4fa7acd diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index a7b1500f29..fd33983148 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -563,6 +563,22 @@ def _tpc_insert_data(target, src, include_tests): target[u"data"].append( float(u"nan") if lat == -1 else lat * 1e6 ) + elif include_tests == u"hoststack": + try: + target[u"data"].append( + float(src[u"result"][u"bits_per_second"]) + ) + except KeyError: + target[u"data"].append( + (float(src[u"result"][u"client"][u"tx_data"]) * 8) / + ((float(src[u"result"][u"client"][u"time"]) + + float(src[u"result"][u"server"][u"time"])) / 2) + ) + elif include_tests == u"vsap": + try: + target[u"data"].append(src[u"result"][u"cps"]) + except KeyError: + target[u"data"].append(src[u"result"][u"rps"]) except (KeyError, TypeError): pass @@ -1815,8 +1831,8 @@ def table_comparison(table, input_data): include_tests=table[u"include-tests"] ) - if table[u"include-tests"] in (u"NDR", u"PDR") or \ - u"latency" in table[u"include-tests"]: + if table[u"include-tests"] in (u"NDR", u"PDR", u"hoststack", u"vsap") \ + or u"latency" in table[u"include-tests"]: for tst_name, tst_data in col_data[u"data"].items(): if tst_data[u"data"]: tst_data[u"mean"] = mean(tst_data[u"data"])