aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2019-09-03 08:56:27 +0200
committerTibor Frank <tifrank@cisco.com>2019-09-03 06:58:21 +0000
commite3e9c2217558f81013cce2614673b796df99e9b2 (patch)
tree39934f60e691d4d592812415221ca3e4f31b4a91
parentbf05994fbf8308bb2482c494a2b28949837fcc6f (diff)
CSIT-1590: Performance comparison analysis
Change-Id: I802b5b9cbeb486587f395aeca76cbe3df68b40c4 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 259620ea6ca1c5864d4864f0f04d260e89ecb72a)
-rw-r--r--resources/tools/presentation/generator_tables.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index c26675e7dd..3ad48256be 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -409,11 +409,13 @@ def table_performance_comparison(table, input_data):
item.append(round(stdev(data_t) / 1000000, 2))
else:
item.extend([None, None])
- if item[-4] is not None and item[-2] is not None and item[-4] != 0:
+ if "dot1q" in tbl_dict[tst_name]["name"]:
+ item.append("Changed methodology")
+ elif item[-4] is not None and item[-2] is not None and item[-4] != 0:
item.append(int(relative_change(float(item[-4]), float(item[-2]))))
else:
- item.append(None)
- if len(item) == len(header):
+ item.append("n/a")
+ if (len(item) == len(header)) and (item[-5] is not None):
tbl_lst.append(item)
# Sort the table according to the relative change
@@ -663,7 +665,7 @@ def table_performance_comparison_nic(table, input_data):
item.append(int(relative_change(float(item[-4]), float(item[-2]))))
else:
item.append("n/a")
- if len(item) == len(header):
+ if (len(item) == len(header)) and (item[-5] is not None):
tbl_lst.append(item)
# Sort the table according to the relative change