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

Side by Side Diff: tools/perf/page_sets/webrtc_cases.py

Issue 2483233002: Update telemetry benchmark to stress-test WebRTC. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « tools/perf/page_sets/data/webrtc_stresstest_cases_001.wpr.sha1 ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 import os 4 import os
5 5
6 from telemetry import story 6 from telemetry import story
7 from telemetry.page import page as page_module 7 from telemetry.page import page as page_module
8 8
9 9
10 WEBRTC_TEST_PAGES_URL = 'https://test.webrtc.org/manual/' 10 WEBRTC_TEST_PAGES_URL = 'https://test.webrtc.org/manual/'
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 super(Page9, self).__init__( 161 super(Page9, self).__init__(
162 url= WEBRTC_TEST_PAGES_URL + 'multiple-peerconnections/', 162 url= WEBRTC_TEST_PAGES_URL + 'multiple-peerconnections/',
163 name='multiple_peerconnections', 163 name='multiple_peerconnections',
164 page_set=page_set) 164 page_set=page_set)
165 165
166 def RunPageInteractions(self, action_runner): 166 def RunPageInteractions(self, action_runner):
167 with action_runner.CreateInteraction('Action_Create_PeerConnection', 167 with action_runner.CreateInteraction('Action_Create_PeerConnection',
168 repeatable=False): 168 repeatable=False):
169 # Set the number of peer connections to create to 15. 169 # Set the number of peer connections to create to 15.
170 action_runner.ExecuteJavaScript( 170 action_runner.ExecuteJavaScript(
171 'document.getElementById("peer-connections-input").value=15') 171 'document.getElementById("num-peerconnections").value=15')
172 action_runner.ClickElement('button[id="start-test-button"]') 172 action_runner.ExecuteJavaScript(
173 'document.getElementById("cpuoveruse-detection").checked=false')
174 action_runner.ClickElement('button[id="start-test"]')
173 action_runner.Wait(45) 175 action_runner.Wait(45)
174 176
175 177
176 class WebrtcGetusermediaPageSet(story.StorySet): 178 class WebrtcGetusermediaPageSet(story.StorySet):
177 """WebRTC tests for local getUserMedia: video capture and playback.""" 179 """WebRTC tests for local getUserMedia: video capture and playback."""
178 180
179 def __init__(self): 181 def __init__(self):
180 super(WebrtcGetusermediaPageSet, self).__init__( 182 super(WebrtcGetusermediaPageSet, self).__init__(
181 archive_data_file='data/webrtc_getusermedia_cases.json', 183 archive_data_file='data/webrtc_getusermedia_cases.json',
182 cloud_storage_bucket=story.PUBLIC_BUCKET) 184 cloud_storage_bucket=story.PUBLIC_BUCKET)
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 class WebrtcRenderingPageSet(story.StorySet): 236 class WebrtcRenderingPageSet(story.StorySet):
235 """WebRTC tests for video rendering.""" 237 """WebRTC tests for video rendering."""
236 238
237 def __init__(self): 239 def __init__(self):
238 super(WebrtcRenderingPageSet, self).__init__( 240 super(WebrtcRenderingPageSet, self).__init__(
239 archive_data_file='data/webrtc_smoothness_cases.json', 241 archive_data_file='data/webrtc_smoothness_cases.json',
240 cloud_storage_bucket=story.PARTNER_BUCKET) 242 cloud_storage_bucket=story.PARTNER_BUCKET)
241 243
242 self.AddStory(Page2(self)) 244 self.AddStory(Page2(self))
243 self.AddStory(Page8(self)) 245 self.AddStory(Page8(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/data/webrtc_stresstest_cases_001.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698