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

Side by Side Diff: tools/perf/benchmarks/dromaeo.py

Issue 372283003: Change test units back to runs/s (looks like this was changed accidentally in crrev.com/280202) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import math 5 import math
6 import os 6 import os
7 7
8 from metrics import power 8 from metrics import power
9 from telemetry import benchmark 9 from telemetry import benchmark
10 from telemetry.page import page_measurement 10 from telemetry.page import page_measurement
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 container[key] = {'count': 0, 'sum': 0} 68 container[key] = {'count': 0, 'sum': 0}
69 container[key]['count'] += 1 69 container[key]['count'] += 1
70 container[key]['sum'] += math.log(value) 70 container[key]['sum'] += math.log(value)
71 71
72 suffix = page.url[page.url.index('?') + 1 :] 72 suffix = page.url[page.url.index('?') + 1 :]
73 def AddResult(name, value): 73 def AddResult(name, value):
74 data_type = 'unimportant' 74 data_type = 'unimportant'
75 if name == suffix: 75 if name == suffix:
76 data_type = 'default' 76 data_type = 'default'
77 77
78 results.Add(Escape(name), 'run/s', value, data_type=data_type) 78 results.Add(Escape(name), 'runs/s', value, data_type=data_type)
79 79
80 aggregated = {} 80 aggregated = {}
81 for data in score: 81 for data in score:
82 AddResult('%s/%s' % (data['collection'], data['name']), 82 AddResult('%s/%s' % (data['collection'], data['name']),
83 data['mean']) 83 data['mean'])
84 84
85 top_name = data['collection'].split('-', 1)[0] 85 top_name = data['collection'].split('-', 1)[0]
86 AggregateData(aggregated, top_name, data['mean']) 86 AggregateData(aggregated, top_name, data['mean'])
87 87
88 collection_name = data['collection'] 88 collection_name = data['collection']
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 """Dromaeo JSLib traverse prototype JavaScript benchmark""" 195 """Dromaeo JSLib traverse prototype JavaScript benchmark"""
196 tag = 'jslibtraverseprototype' 196 tag = 'jslibtraverseprototype'
197 query_param = 'jslib-traverse-prototype' 197 query_param = 'jslib-traverse-prototype'
198 198
199 199
200 class DromaeoCSSQueryJquery(_DromaeoBenchmark): 200 class DromaeoCSSQueryJquery(_DromaeoBenchmark):
201 """Dromaeo CSS Query jquery JavaScript benchmark""" 201 """Dromaeo CSS Query jquery JavaScript benchmark"""
202 tag = 'cssqueryjquery' 202 tag = 'cssqueryjquery'
203 query_param = 'cssquery-jquery' 203 query_param = 'cssquery-jquery'
204 204
OLDNEW
« 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