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) |