OLD | NEW |
(Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 from telemetry.page import page as page_module |
| 5 from telemetry import story |
| 6 |
| 7 |
| 8 class MotionMarkPage(page_module.Page): |
| 9 def __init__(self, page_set, suite_name, test_name, complexity): |
| 10 name = suite_name + ' - ' + test_name |
| 11 suite_name = ''.join(c for c in suite_name if c not in ' .,') |
| 12 test_name = ''.join(c for c in test_name if c not in ' .,') |
| 13 url = ( |
| 14 'http://browserbench.org/MotionMark/developer.html' |
| 15 '?suite-name=%s' |
| 16 '&test-name=%s' |
| 17 '&complexity=%d' |
| 18 '&test-interval=20' |
| 19 '&display=minimal' |
| 20 '&tiles=big' |
| 21 '&controller=fixed' |
| 22 '&frame-rate=50' |
| 23 '&kalman-process-error=1' |
| 24 '&kalman-measurement-error=4' |
| 25 '&time-measurement=performance' |
| 26 ) % (suite_name, test_name, complexity) |
| 27 super(MotionMarkPage, self).__init__( |
| 28 url=url, page_set=page_set, name=name) |
| 29 |
| 30 def RunPageInteractions(self, action_runner): |
| 31 with action_runner.CreateInteraction('Filter'): |
| 32 action_runner.Wait(2) |
| 33 |
| 34 class MotionMarkPageSet(story.StorySet): |
| 35 """ |
| 36 Description: MotionMark test suites. |
| 37 """ |
| 38 def __init__(self): |
| 39 super(MotionMarkPageSet, self).__init__( |
| 40 archive_data_file='data/motionmark.json', |
| 41 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 42 |
| 43 self.AddStory(MotionMarkPage(self, 'Animometer', 'Multiply', 1000)) |
| 44 self.AddStory(MotionMarkPage(self, 'Animometer', 'Canvas Arcs', 1200)) |
| 45 self.AddStory(MotionMarkPage(self, 'Animometer', 'Leaves', 1400)) |
| 46 self.AddStory(MotionMarkPage(self, 'Animometer', 'Paths', 2500)) |
| 47 self.AddStory(MotionMarkPage(self, 'Animometer', 'Canvas Lines', 7500)) |
| 48 self.AddStory(MotionMarkPage(self, 'Animometer', 'Focus', 200)) |
| 49 self.AddStory(MotionMarkPage(self, 'Animometer', 'Images', 100)) |
| 50 self.AddStory(MotionMarkPage(self, 'Animometer', 'Design', 200)) |
| 51 self.AddStory(MotionMarkPage(self, 'Animometer', 'Suits', 800)) |
| 52 |
| 53 self.AddStory(MotionMarkPage( |
| 54 self, 'HTML suite', 'CSS bouncing circles', 1200)) |
| 55 self.AddStory(MotionMarkPage( |
| 56 self, 'HTML suite', 'CSS bouncing clipped rects', 800)) |
| 57 self.AddStory(MotionMarkPage( |
| 58 self, 'HTML suite', 'CSS bouncing gradient circles', 1200)) |
| 59 self.AddStory(MotionMarkPage( |
| 60 self, 'HTML suite', 'CSS bouncing blend circles', 600)) |
| 61 self.AddStory(MotionMarkPage( |
| 62 self, 'HTML suite', 'CSS bouncing filter circles', 300)) |
| 63 self.AddStory(MotionMarkPage( |
| 64 self, 'HTML suite', 'CSS bouncing SVG images', 400)) |
| 65 self.AddStory(MotionMarkPage( |
| 66 self, 'HTML suite', 'CSS bouncing tagged images', 1000)) |
| 67 self.AddStory(MotionMarkPage( |
| 68 self, 'HTML suite', 'Leaves 2.0', 1200)) |
| 69 self.AddStory(MotionMarkPage( |
| 70 self, 'HTML suite', 'Focus 2.0', 200)) |
| 71 self.AddStory(MotionMarkPage( |
| 72 self, 'HTML suite', 'DOM particles, SVG masks', 300)) |
| 73 self.AddStory(MotionMarkPage( |
| 74 self, 'HTML suite', 'Composited Transforms', 1200)) |
| 75 |
| 76 self.AddStory(MotionMarkPage( |
| 77 self, 'Canvas suite', 'canvas bouncing clipped rects', 1500)) |
| 78 self.AddStory(MotionMarkPage( |
| 79 self, 'Canvas suite', 'canvas bouncing gradient circles', 2000)) |
| 80 self.AddStory(MotionMarkPage( |
| 81 self, 'Canvas suite', 'canvas bouncing SVG images', 500)) |
| 82 self.AddStory(MotionMarkPage( |
| 83 self, 'Canvas suite', 'canvas bouncing PNG images', 5000)) |
| 84 self.AddStory(MotionMarkPage( |
| 85 self, 'Canvas suite', 'Stroke shapes', 800)) |
| 86 self.AddStory(MotionMarkPage( |
| 87 self, 'Canvas suite', 'Fill shapes', 1000)) |
| 88 self.AddStory(MotionMarkPage( |
| 89 self, 'Canvas suite', 'Canvas put/get image data', 1000)) |
| 90 |
| 91 self.AddStory(MotionMarkPage( |
| 92 self, 'SVG suite', 'SVG bouncing circles', 3500)) |
| 93 self.AddStory(MotionMarkPage( |
| 94 self, 'SVG suite', 'SVG bouncing clipped rects', 800)) |
| 95 self.AddStory(MotionMarkPage( |
| 96 self, 'SVG suite', 'SVG bouncing gradient circles', 2200)) |
| 97 self.AddStory(MotionMarkPage( |
| 98 self, 'SVG suite', 'SVG bouncing SVG images', 400)) |
| 99 self.AddStory(MotionMarkPage( |
| 100 self, 'SVG suite', 'SVG bouncing PNG images', 700)) |
| 101 |
| 102 self.AddStory(MotionMarkPage(self, '3D Graphics', 'WebGL', 18000)) |
OLD | NEW |