Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1505)

Unified Diff: buildbot/scripts/slave/chromium/dom_perf.py

Issue 200114: Fix formatting of dom perf test output so ref scores show up properly.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: buildbot/scripts/slave/chromium/dom_perf.py
===================================================================
--- buildbot/scripts/slave/chromium/dom_perf.py (revision 26062)
+++ buildbot/scripts/slave/chromium/dom_perf.py (working copy)
@@ -27,13 +27,16 @@
URL = 'file:///%s/run.html?run=all%s&reportInJS=1&tags=buildbot_trunk,revision_%s'
-def print_result(top, name, score_string):
+def print_result(top, name, score_string, refbuild):
prefix = ''
if top:
prefix = '*'
score = int(round(float(score_string)))
- print ('%sRESULT %s: score= %d score (bigger is better)' %
- (prefix, name, score))
+ score_label = 'score'
+ if refbuild:
+ score_label = 'score_ref'
+ print ('%sRESULT %s: %s= %d score (bigger is better)' %
+ (prefix, name, score_label, score))
def main(options, args):
"""Using the target build configuration, run the dom perf test."""
@@ -95,15 +98,10 @@
data = json.loads(''.join(file.readlines()))
file.close()
- name = 'Total'
- if use_refbuild:
- name += '_ref'
- print_result(True, name, data['BenchmarkRun']['totalScore'])
+ print_result(True, 'Total', data['BenchmarkRun']['totalScore'],
+ use_refbuild)
for suite in data['BenchmarkSuites']:
- name = suite['name']
- if use_refbuild:
- name += '_ref'
- print_result(False, name, suite['score'])
+ print_result(False, suite['name'], suite['score'], use_refbuild)
return result
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698