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

Unified Diff: tools/perf/benchmarks/benchmarks.py

Issue 17438002: [telemetry] test_runner and run_benchmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « tools/perf/benchmarks/__init__.py ('k') | tools/perf/measurements/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/benchmarks.py
diff --git a/tools/perf/benchmarks/benchmarks.py b/tools/perf/benchmarks/benchmarks.py
new file mode 100644
index 0000000000000000000000000000000000000000..3a663e56fbc33fb9000fd802ddb5ffaedbd8b551
--- /dev/null
+++ b/tools/perf/benchmarks/benchmarks.py
@@ -0,0 +1,31 @@
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+import os
+
+from telemetry import test
+from telemetry.core import util
+from telemetry.page import page_set
+
+import measurements
+
+
+class Smoothness(test.TelemetryTest):
nduca 2013/06/18 23:52:23 This is SmoothnessTop25 no?
dtu 2013/06/19 01:00:50 Done.
+ """Measures rendering statistics while scrolling down the top 25 web pages"""
+ test = measurements.smoothness.Smoothness
+ page_set = 'page_sets/top_25.json'
+ options = {'report_all_results': False}
+
+class Sunspider(test.TelemetryTest):
+ """Performance on the SunSpider JavaScript benchmark"""
+ test = measurements.sunspider.Sunspider
nduca 2013/06/18 23:52:23 can you blow this file out to be one class per fil
dtu 2013/06/19 01:00:50 Done.
+
+ def CreatePageSet(self, options):
+ sunspider_dir = os.path.join(util.GetChromiumSrcDir(),
+ 'chrome', 'test', 'data', 'sunspider')
+ return page_set.PageSet.FromDict(
+ {
+ 'serving_dirs': [''],
+ 'pages': [{ 'url': 'file:///sunspider-1.0/driver.html' }],
+ },
+ sunspider_dir)
« no previous file with comments | « tools/perf/benchmarks/__init__.py ('k') | tools/perf/measurements/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698