aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2022-03-01 10:43:47 +0100
committerTibor Frank <tifrank@cisco.com>2022-03-01 09:46:41 +0000
commit48be4720f938a9856ec74deed3f7b0276f414e47 (patch)
tree749c56e2ed2711abf9d37392e042896066c7a763 /resources/tools/presentation/generator_tables.py
parent727d679a254ff639e5f48d79415a935b9ac0bcae (diff)
Report: Add comp tables for hoststack and vsap
- elements only - not visible Change-Id: I9741b3da7ce0a787d40d17653d0580ec74bcbdc6 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit dec942c114df8fbd039e93174245920c257cc5e7)
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r--resources/tools/presentation/generator_tables.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index a7b1500f29..aa49762d8d 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