summaryrefslogtreecommitdiffstats
path: root/tools/perf/page_sets/tough_scrolling_cases.py
diff options
context:
space:
mode:
authorreveman <reveman@chromium.org>2014-11-06 15:23:58 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-06 23:24:26 +0000
commit7af16b12f3a2e720fef09abc42b896c0094bc995 (patch)
treef84261f7755cda325c2bbee47bd2aba0eddb0ae3 /tools/perf/page_sets/tough_scrolling_cases.py
parent7fbcce797ed32cf1d653ca5e4bf1dfad4cd7fc46 (diff)
downloadchromium_src-7af16b12f3a2e720fef09abc42b896c0094bc995.zip
chromium_src-7af16b12f3a2e720fef09abc42b896c0094bc995.tar.gz
chromium_src-7af16b12f3a2e720fef09abc42b896c0094bc995.tar.bz2
tools: Improve tough fast scrolling test names and adjust the speed used.
This makes sure each page has a unique name and increases the maximum speed at which we run these tests for more valuable measurements on fast machines. BUG= R=ernstm@chromium.org Review URL: https://codereview.chromium.org/703243002 Cr-Commit-Position: refs/heads/master@{#303116}
Diffstat (limited to 'tools/perf/page_sets/tough_scrolling_cases.py')
-rw-r--r--tools/perf/page_sets/tough_scrolling_cases.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/tools/perf/page_sets/tough_scrolling_cases.py b/tools/perf/page_sets/tough_scrolling_cases.py
index 0853249..954864a 100644
--- a/tools/perf/page_sets/tough_scrolling_cases.py
+++ b/tools/perf/page_sets/tough_scrolling_cases.py
@@ -18,12 +18,12 @@ class ToughScrollingCasesPage(page_module.Page):
class ToughFastScrollingCasesPage(page_module.Page):
- def __init__(self, url, speed_in_pixels_per_second, page_set):
+ def __init__(self, url, name, speed_in_pixels_per_second, page_set):
super(ToughFastScrollingCasesPage, self).__init__(
url=url,
page_set=page_set,
- labels=['fastscrolling'],
- name=str(speed_in_pixels_per_second).zfill(5) + '_pixels_per_second')
+ name=name,
+ labels=['fastscrolling'])
self.speed_in_pixels_per_second = speed_in_pixels_per_second
def RunSmoothness(self, action_runner):
@@ -58,15 +58,19 @@ class ToughScrollingCasesPageSet(page_set_module.PageSet):
for url in urls_list:
self.AddPage(ToughScrollingCasesPage(url, self))
- fast_scrolling_urls_list = [
- 'file://tough_scrolling_cases/lorem_ipsum.html',
- 'file://tough_scrolling_cases/canvas.html'
+ fast_scrolling_page_name_list = [
+ 'text',
+ 'canvas'
]
fast_scrolling_speed_list = [
- 5000, 10000, 15000, 20000, 25000, 30000, 35000, 40000, 45000, 50000
+ 5000, 10000, 15000, 20000, 30000, 40000, 50000, 60000, 75000, 90000
]
- for url in fast_scrolling_urls_list:
+ for name in fast_scrolling_page_name_list:
for speed in fast_scrolling_speed_list:
- self.AddPage(ToughFastScrollingCasesPage(url, speed, self))
+ self.AddPage(ToughFastScrollingCasesPage(
+ 'file://tough_scrolling_cases/' + name + '.html',
+ name + '_' + str(speed).zfill(5) + '_pixels_per_second',
+ speed,
+ self))