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

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

Issue 68203007: [Telemetry]: Add HTML5 Capabilities and Canvas tests to Peacekeeper benchmark suite. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 | tools/perf/page_sets/data/peacekeeper_experimental.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/peacekeeper.py
diff --git a/tools/perf/benchmarks/peacekeeper.py b/tools/perf/benchmarks/peacekeeper.py
index 31da6cf2412de090e77ae09d392d6d6430777320..88a3338c96ecfd4ce807344461452a918fa616b5 100644
--- a/tools/perf/benchmarks/peacekeeper.py
+++ b/tools/perf/benchmarks/peacekeeper.py
@@ -38,7 +38,6 @@ class PeaceKeeperMeasurement(page_measurement.PageMeasurement):
test_frame.contentWindow.onbeforeunload = {};
if ((msg.indexOf("Submit ok.")) != -1) {
_done = true;
- var __data = {};
__results["test"] = benchmark.testObjectName;
__results["score"] = benchmark.test.result;
if (typeof(benchmark.test.unit) != "undefined") {
@@ -200,3 +199,59 @@ class PeaceKeeperTextParsing(PeaceKeeperBenchmark):
'stringValidateForm'
]
+
+class PeaceKeeperHTML5Canvas(PeaceKeeperBenchmark):
+ """PeaceKeeper HTML5 Canvas benchmark suite.
tonyg 2013/11/12 02:07:53 Thanks again for all the great comments in the ben
+
+ These tests use HTML5 Canvas, which is a web technology for drawing and
+ manipulating graphics without external plug-ins.
+ 1. experimentalRipple01: Simulates a 'water ripple' effect by using HTML 5
+ Canvas. It measures the browser's ability to draw individual pixels.
+ 2. experimentalRipple02: Same test as 'experimentalRipple01', but with a
+ larger canvas and thus a heavier workload.
+ """
+
+ tag = 'experimental'
+ test_param = ['experimentalRipple01',
+ 'experimentalRipple02'
+ ]
+
+
+class PeaceKeeperHTML5Capabilities(PeaceKeeperBenchmark):
+ """PeaceKeeper HTML5 Capabilities benchmark suite.
+
+ These tests checks browser HTML5 capabilities support for WebGL, Video
+ foramts, simple 2D sprite based games and web worker.
+ This benchmark only tests HTML5 capability and thus is not calculate into the
+ overall score.
+ 1. HTML5 - WebGL: WebGL allows full blown 3D graphics to be rendered in a
+ browser without the need for any external plug-ins.
+ a) webglSphere
+ 2. HTML5 - Video: hese tests find out which HTML5 video formats are supposed
+ by your browser. Peacekeeper only checks if your browser is able to play a
+ specific format, no other valuation is done.
+ a) videoCodecH264
+ b) videoCodecTheora
+ c) videoCodecWebM
+ d) videoPosterSupport
+ 3.HTML5 - Web Worker: These tests use HTML5 Web Worker, which allows
+ JavaScript to multhread - ie. the ability to perform multiple actions
+ concurrently.
+ a) workerContrast01
+ b) workerContrast02
+ 4. HTML5 - Game: This test simulates a simple 2D, sprite-based game.
+ The test itself is the real game, and what is shown is a recorded play.
+ a) gamingSpitfire
+ """
+
+ tag = 'html5'
+ test_param = ['webglSphere',
+ 'gamingSpitfire',
+ 'videoCodecH264',
+ 'videoCodecTheora',
+ 'videoCodecWebM',
+ 'videoPosterSupport',
+ 'workerContrast01',
+ 'workerContrast02'
+ ]
+
« no previous file with comments | « no previous file | tools/perf/page_sets/data/peacekeeper_experimental.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698