summaryrefslogtreecommitdiffstats
path: root/tools/perf/page_sets/tough_scrolling_cases.py
diff options
context:
space:
mode:
authorreveman <reveman@chromium.org>2014-11-05 04:49:06 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-05 12:50:21 +0000
commitd366d0665a49b05fc441efe04e07226052c08787 (patch)
tree3259e6584ce1fadaf251c0c40b0dc9a739d741b6 /tools/perf/page_sets/tough_scrolling_cases.py
parent430072c87e69baa5fae82ba63096bfe901535a21 (diff)
downloadchromium_src-d366d0665a49b05fc441efe04e07226052c08787.zip
chromium_src-d366d0665a49b05fc441efe04e07226052c08787.tar.gz
chromium_src-d366d0665a49b05fc441efe04e07226052c08787.tar.bz2
tools: Improve tough fast scrolling cases by running them at multiple speeds.
How fast we can scroll without checkerboarding is different for each device. As it's not possible to pick one speed that is a good test on all devices, instead run each tough scrolling page at a number of speeds. The average amount of checkerbording is a good number to monitor for improvements and the result of each individual run is also very useful to determine how fast some specific device can scroll without large amounts of checkerboarding. BUG= Review URL: https://codereview.chromium.org/699313003 Cr-Commit-Position: refs/heads/master@{#302788}
Diffstat (limited to 'tools/perf/page_sets/tough_scrolling_cases.py')
-rw-r--r--tools/perf/page_sets/tough_scrolling_cases.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/tools/perf/page_sets/tough_scrolling_cases.py b/tools/perf/page_sets/tough_scrolling_cases.py
index 9c76d40..0853249 100644
--- a/tools/perf/page_sets/tough_scrolling_cases.py
+++ b/tools/perf/page_sets/tough_scrolling_cases.py
@@ -18,16 +18,20 @@ class ToughScrollingCasesPage(page_module.Page):
class ToughFastScrollingCasesPage(page_module.Page):
- def __init__(self, url, page_set):
+ def __init__(self, url, speed_in_pixels_per_second, page_set):
super(ToughFastScrollingCasesPage, self).__init__(
url=url,
page_set=page_set,
- labels=['fastscrolling'])
+ labels=['fastscrolling'],
+ name=str(speed_in_pixels_per_second).zfill(5) + '_pixels_per_second')
+ self.speed_in_pixels_per_second = speed_in_pixels_per_second
def RunSmoothness(self, action_runner):
interaction = action_runner.BeginGestureInteraction(
'ScrollAction', is_smooth=True)
- action_runner.ScrollPage(direction='down', speed_in_pixels_per_second=16000)
+ action_runner.ScrollPage(
+ direction='down',
+ speed_in_pixels_per_second=self.speed_in_pixels_per_second)
interaction.End()
class ToughScrollingCasesPageSet(page_set_module.PageSet):
@@ -56,8 +60,13 @@ class ToughScrollingCasesPageSet(page_set_module.PageSet):
fast_scrolling_urls_list = [
'file://tough_scrolling_cases/lorem_ipsum.html',
- 'file://tough_scrolling_cases/canvas.html',
+ 'file://tough_scrolling_cases/canvas.html'
+ ]
+
+ fast_scrolling_speed_list = [
+ 5000, 10000, 15000, 20000, 25000, 30000, 35000, 40000, 45000, 50000
]
for url in fast_scrolling_urls_list:
- self.AddPage(ToughFastScrollingCasesPage(url, self))
+ for speed in fast_scrolling_speed_list:
+ self.AddPage(ToughFastScrollingCasesPage(url, speed, self))