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

Issue 2545553003: WebRtcStatsPerfBrowserTest added, a perf test using the new getStats (Closed)

Created:
4 years ago by hbos_chromium
Modified:
4 years ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, phoglund+watch_chromium.org, mcasas+watch+vc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebRtcStatsPerfBrowserTest added, a perf test using the new getStats. Using the promise-based getStats to collect stats, writes stats after 60+10* seconds of audio and video calling. These will be picked up by the Chrome Performance Dashboard[1]. E.g. from other browser test: [2]. *(After 60s of ramp-up, performs measurments during a 10s window, to avoid unstable stats due to variations in ramp-up time.) This is similar to the WebRtcPerfBrowserTest - renamed WebRtcInternalsBrowserTest to avoid confusion - which instead uses chrome://webrtc-internals relying on the old callback-based version of getStats. Available stats are different. This performance test only picks up: - browser_tests / audio_[codec] / send_rate - browser_tests / audio_[codec] / receive_rate - browser_tests / video_[codec] / send_rate - browser_tests / video_[codec] / receive_rate Based on "RTC[In/Out]boundRTPStreamStats.bytes_[sent/received]" values [3][4]. For audio codecs: opus, ISAC, G722, PCMU, PCMA. And video codecs: VP8, VP9, H264. More stats can be picked up in follow-up CLs, but the new getStats API has a limited number of stats available. [1] https://chromeperf.appspot.com/ [2] https://chromeperf.appspot.com/report?sid=4a337ff35047d3a12a0b6d05fa1bf95e001c824cd1821be95dc7799134ae9b67 [3] https://w3c.github.io/webrtc-stats/#dom-rtcoutboundrtpstreamstats-bytessent [4] https://w3c.github.io/webrtc-stats/#dom-rtcinboundrtpstreamstats-bytesreceived BUG=670306, 627816 Committed: https://crrev.com/32bafc424946864c744ecfc0cbd83f6d5c18852b Cr-Commit-Position: refs/heads/master@{#436260}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed EXPECT_EQ to expect the right thing (bug in test, not in code) #

Total comments: 4

Patch Set 3 : Average Bps over 10s window (after 60s rampup) for stable values #

Patch Set 4 : Renamed tests: WebRtcStatsPerfBrowserTest and WebRtcInternalsPerfBrowserTest #

Patch Set 5 : Addressed nits, rebase, default initialize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -46 lines) Patch
M chrome/browser/media/webrtc/webrtc_browsertest_base.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/media/webrtc/webrtc_browsertest_base.cc View 1 2 3 chunks +11 lines, -3 lines 0 comments Download
A + chrome/browser/media/webrtc/webrtc_internals_perf_browsertest.cc View 1 2 3 4 4 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/media/webrtc/webrtc_perf_browsertest.cc View 1 2 3 4 chunks +9 lines, -8 lines 0 comments Download
A chrome/browser/media/webrtc/webrtc_stats_perf_browsertest.cc View 1 2 3 4 1 chunk +240 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/test/data/webrtc/peerconnection.js View 4 chunks +62 lines, -24 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 29 (16 generated)
hbos_chromium
Please take a look, hta and phoglund.
4 years ago (2016-12-01 14:33:10 UTC) #7
hbos_chromium
Out of interest, sample run on local machine yields: RESULT audio_opus: bytes_sent= 93506 bytes RESULT ...
4 years ago (2016-12-01 14:50:30 UTC) #8
phoglund_chromium
https://codereview.chromium.org/2545553003/diff/40001/chrome/browser/media/webrtc/webrtc_performance_browsertest.cc File chrome/browser/media/webrtc/webrtc_performance_browsertest.cc (right): https://codereview.chromium.org/2545553003/diff/40001/chrome/browser/media/webrtc/webrtc_performance_browsertest.cc#newcode22 chrome/browser/media/webrtc/webrtc_performance_browsertest.cc:22: Bytes received/sent is probably one of the more volatile ...
4 years ago (2016-12-01 15:42:30 UTC) #10
hbos_chromium
Replied to a single question: https://codereview.chromium.org/2545553003/diff/40001/chrome/browser/media/webrtc/webrtc_performance_browsertest.cc File chrome/browser/media/webrtc/webrtc_performance_browsertest.cc (right): https://codereview.chromium.org/2545553003/diff/40001/chrome/browser/media/webrtc/webrtc_performance_browsertest.cc#newcode22 chrome/browser/media/webrtc/webrtc_performance_browsertest.cc:22: On 2016/12/01 15:42:30, phoglund_chrome ...
4 years ago (2016-12-01 15:52:03 UTC) #11
phoglund_chromium
On 2016/12/01 15:52:03, hbos_chromium wrote: > Replied to a single question: > > https://codereview.chromium.org/2545553003/diff/40001/chrome/browser/media/webrtc/webrtc_performance_browsertest.cc > ...
4 years ago (2016-12-01 15:55:44 UTC) #12
hbos_chromium
PTAL phoglund, hta. Example output: RESULT audio_opus: send_rate= 3065.2 bytes/second RESULT audio_opus: receive_rate= 5084.8 bytes/second ...
4 years ago (2016-12-02 14:55:46 UTC) #14
phoglund_chromium
On 2016/12/02 14:55:46, hbos_chromium wrote: > PTAL phoglund, hta. > > Example output: > > ...
4 years ago (2016-12-02 16:06:48 UTC) #15
phoglund_chromium
lgtm
4 years ago (2016-12-02 16:06:53 UTC) #16
hta - Chromium
lgtm Always some small comments. https://codereview.chromium.org/2545553003/diff/20001/chrome/browser/media/webrtc/webrtc_performance_browsertest.cc File chrome/browser/media/webrtc/webrtc_performance_browsertest.cc (right): https://codereview.chromium.org/2545553003/diff/20001/chrome/browser/media/webrtc/webrtc_performance_browsertest.cc#newcode25 chrome/browser/media/webrtc/webrtc_performance_browsertest.cc:25: RTCStatsReportDictionary* report, bool inbound, ...
4 years ago (2016-12-05 09:07:17 UTC) #17
hbos_chromium
https://codereview.chromium.org/2545553003/diff/20001/chrome/browser/media/webrtc/webrtc_performance_browsertest.cc File chrome/browser/media/webrtc/webrtc_performance_browsertest.cc (right): https://codereview.chromium.org/2545553003/diff/20001/chrome/browser/media/webrtc/webrtc_performance_browsertest.cc#newcode25 chrome/browser/media/webrtc/webrtc_performance_browsertest.cc:25: RTCStatsReportDictionary* report, bool inbound, const char* media_type) { On ...
4 years ago (2016-12-05 09:41:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2545553003/100001
4 years ago (2016-12-05 10:33:57 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years ago (2016-12-05 11:20:28 UTC) #27
commit-bot: I haz the power
4 years ago (2016-12-05 11:22:03 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/32bafc424946864c744ecfc0cbd83f6d5c18852b
Cr-Commit-Position: refs/heads/master@{#436260}

Powered by Google App Engine
This is Rietveld 408576698