Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-1590: Performance comparison analysis
[csit.git]
/
resources
/
tools
/
presentation
/
generator_tables.py
diff --git
a/resources/tools/presentation/generator_tables.py
b/resources/tools/presentation/generator_tables.py
index
7344770
..
36c6e64
100644
(file)
--- 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])
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(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
tbl_lst.append(item)
# Sort the table according to the relative change
@@
-657,11
+659,13
@@
def table_performance_comparison_nic(table, input_data):
item.append(round(stdev(data_t) / 1000000, 2))
else:
item.extend([None, None])
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(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
tbl_lst.append(item)
# Sort the table according to the relative change