summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@linux.intel.com>2016-01-25 23:40:03 +0200
committerMartin Peres <martin.peres@linux.intel.com>2016-01-27 19:35:18 +0200
commitb8a6ca9183b110156ba651ed617f5b6e27366614 (patch)
tree1afa22685c6b214877a322ec5dcaa7c9c754a300
parent21d907615b7fd8dba625339796b12f48d518f6df (diff)
compare_reports: improve the html output
-rwxr-xr-xezbench1
-rwxr-xr-xstats/compare_reports.py10
2 files changed, 5 insertions, 6 deletions
diff --git a/ezbench b/ezbench
index 87eee06..6a11bf1 100755
--- a/ezbench
+++ b/ezbench
@@ -66,7 +66,6 @@ parser.add_argument("command", help="Command to execute", nargs='?',
choices=('start', 'run', 'pause', 'abort', 'status'))
args = parser.parse_args()
-
sbench = SmartEzbench(ezbench_dir, args.report_name)
if sbench.profile() is None and args.profile is not None:
diff --git a/stats/compare_reports.py b/stats/compare_reports.py
index 035df90..a959df0 100755
--- a/stats/compare_reports.py
+++ b/stats/compare_reports.py
@@ -440,10 +440,10 @@ html_template="""
% endif
% for benchmark in db["benchmarks"]:
% if benchmark in db["commits"][commit]['reports'][report]:
- <%
- diff_target = db["commits"][commit]['reports'][report][benchmark].average * 100 / db['targets'][benchmark]
- diff_target = "{0:.2f}".format(diff_target)
- %>
+<%
+ diff_target = db["commits"][commit]['reports'][report][benchmark].average * 100 / db['targets'][benchmark]
+ diff_target = "{0:.2f}".format(diff_target)
+%>\\
, ${diff_target}, "${tooltip_commit_table(commit)}<h4>Perf</h4><table><tr><td><b>Target</b></td><td>${diff_target} %</td></tr><tr><td><b>Raw value</b></td><td>${db["commits"][commit]['reports'][report][benchmark].average} ${output_unit}</td></tr></table>"\\
% else:
, null, "${benchmark}"\\
@@ -527,7 +527,7 @@ html_template="""
dataTable.addRows([
% for report in db["reports"]:
% if report in db["commits"][commit]['reports']:
- ["${report}", ${db["commits"][commit]['reports'][report]["average"]}, "<h3>${report} - ${benchmark}</h3><p>\\
+ ["${report}", ${db["commits"][commit]['reports'][report]["average"]}, "<h3>${report} - Average</h3><p>\\
% for r in db["reports"]:
<%
if not r in db["commits"][commit]: