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

Unified Diff: tools/perf/page_sets/webrtc_cases.py

Issue 2463013003: Add a new telemetry benchmark to stress-test WebRTC. (Closed)
Patch Set: Upload webrtc_stresstest_cases to cloud storage. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/page_sets/data/webrtc_stresstest_cases_000.wpr.sha1 ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/webrtc_cases.py
diff --git a/tools/perf/page_sets/webrtc_cases.py b/tools/perf/page_sets/webrtc_cases.py
index f157d576047d6c108272aa1caf33868fa586720d..d01dc6b081ab307cb718328207f4ad885138c549 100644
--- a/tools/perf/page_sets/webrtc_cases.py
+++ b/tools/perf/page_sets/webrtc_cases.py
@@ -7,6 +7,7 @@ from telemetry import story
from telemetry.page import page as page_module
+WEBRTC_TEST_PAGES_URL = 'https://test.webrtc.org/manual/'
WEBRTC_GITHUB_SAMPLES_URL = 'https://webrtc.github.io/samples/src/content/'
MEDIARECORDER_GITHUB_URL = 'https://rawgit.com/cricdecyan/mediarecorder/master/'
@@ -153,6 +154,25 @@ class Page8(WebrtcPage):
action_runner.Wait(10)
+class Page9(WebrtcPage):
+ """Why: Sets up several peerconnections in the same page."""
+
+ def __init__(self, page_set):
+ super(Page9, self).__init__(
+ url= WEBRTC_TEST_PAGES_URL + 'multiple-peerconnections/',
+ name='multiple_peerconnections',
+ page_set=page_set)
+
+ def RunPageInteractions(self, action_runner):
+ with action_runner.CreateInteraction('Action_Create_PeerConnection',
+ repeatable=False):
+ # Set the number of peer connections to create to 15.
+ action_runner.ExecuteJavaScript(
+ 'document.getElementById("peer-connections-input").value=15')
+ action_runner.ClickElement('button[id="start-test-button"]')
+ action_runner.Wait(45)
+
+
class WebrtcGetusermediaPageSet(story.StorySet):
"""WebRTC tests for local getUserMedia: video capture and playback."""
@@ -164,6 +184,17 @@ class WebrtcGetusermediaPageSet(story.StorySet):
self.AddStory(Page1(self))
+class WebrtcStresstestPageSet(story.StorySet):
+ """WebRTC stress-testing with multiple peer connections."""
+
+ def __init__(self):
+ super(WebrtcStresstestPageSet, self).__init__(
+ archive_data_file='data/webrtc_stresstest_cases.json',
+ cloud_storage_bucket=story.PUBLIC_BUCKET)
+
+ self.AddStory(Page9(self))
+
+
class WebrtcPeerconnectionPageSet(story.StorySet):
"""WebRTC tests for Real-time video and audio communication."""
« no previous file with comments | « tools/perf/page_sets/data/webrtc_stresstest_cases_000.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698