diff options
author | Tibor Frank <tifrank@cisco.com> | 2018-01-29 12:56:33 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2018-01-29 11:59:06 +0000 |
commit | 2ef0d62c8a29c5fefb9f9851934eb2147f00a82b (patch) | |
tree | a6d4ebd267d97b8547d89bd6d6b55079b413a22c /resources/tools/presentation | |
parent | 213451721aa6d169b6406d971d607f4150ffedac (diff) |
Report: PAL fixes
Change-Id: Ie7762343de4db66c442e45830030608c38d1ebf1
Signed-off-by: Tibor Frank <tifrank@cisco.com>
(cherry picked from commit 4ade202fbf0b8978cd7d348507c14eda28ae76ad)
Diffstat (limited to 'resources/tools/presentation')
-rw-r--r-- | resources/tools/presentation/generator_tables.py | 7 | ||||
-rw-r--r-- | resources/tools/presentation/specification.yaml | 4 |
2 files changed, 5 insertions, 6 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 46d2287baa..58d7426542 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -20,7 +20,6 @@ import csv import prettytable from string import replace -from pprint import pformat from errors import PresentationError from utils import mean, stdev, relative_change @@ -196,6 +195,9 @@ def table_performance_improvements(table, input_data): for item in data: if isinstance(item["data"], str): line_lst.append(item["data"]) + # Remove -?drdisc from the end + if item["data"].endswith("drdisc"): + item["data"] = item["data"][:-8] elif isinstance(item["data"], float): line_lst.append("{:.1f}".format(item["data"])) elif item["data"] is None: @@ -397,8 +399,6 @@ def table_performance_comparison(table, input_data): except TypeError: tbl_dict.pop(tst_name, None) - logging.info(pformat(tbl_dict)) - tbl_lst = list() for tst_name in tbl_dict.keys(): item = [tbl_dict[tst_name]["name"], ] @@ -423,7 +423,6 @@ def table_performance_comparison(table, input_data): # Sort the table according to the relative change tbl_lst.sort(key=lambda rel: rel[-1], reverse=True) - logging.info(pformat(tbl_lst)) # Generate tables: # All tests in csv: diff --git a/resources/tools/presentation/specification.yaml b/resources/tools/presentation/specification.yaml index 78dd9f3b21..f34fb2eb7c 100644 --- a/resources/tools/presentation/specification.yaml +++ b/resources/tools/presentation/specification.yaml @@ -439,7 +439,7 @@ algorithm: "table_performance_comparison" output-file-ext: ".csv" # TODO: specify dir - output-file: "{DIR[DTR,PERF,VPP,IMPACT,MELTDOWN]}/meltdown-impact" + output-file: "{DIR[STATIC,VPP]}/meltdown-impact" reference: title: "No Meltdown" # TODO: specify data sources @@ -473,7 +473,7 @@ algorithm: "table_performance_comparison" output-file-ext: ".csv" # TODO: specify dir - output-file: "{DIR[DTR,PERF,VPP,IMPACT,SPECTRE]}/meltdown-spectre-impact" + output-file: "{DIR[STATIC,VPP]}/meltdown-spectre-impact" reference: title: "No Spectre" # TODO: specify data sources |