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

Issue 1513223002: Reduce the runtime of some ACM tests in modules_tests (Closed)

Created:
5 years ago by hlundin-webrtc
Modified:
5 years ago
Reviewers:
ivoc
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, peah-webrtc, minyue-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Reduce the runtime of some ACM tests in modules_tests By reducing the length of the audio input, the total runtime of $ out/Debug/modules_tests --gtest_filter=AudioCodingModuleTest.* is reduced by more than 10x, when run single-threaded. The PCMFile helper class is extended with a FastForward method (to skip initial silence in the test files) and a limiter on how much to read. BUG=webrtc:2463 R=ivoc@webrtc.org Committed: https://crrev.com/4d68208a2089bfb7c9bf87f06722033a9e82a2a3 Cr-Commit-Position: refs/heads/master@{#10973}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Taking care of review comments #

Patch Set 3 : Fixing win64 build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -5 lines) Patch
M webrtc/modules/audio_coding/test/EncodeDecodeTest.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/test/PCMFile.h View 3 chunks +12 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/test/PCMFile.cc View 1 2 4 chunks +18 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/test/TestAllCodecs.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/test/TestRedFec.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/test/TestStereo.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/test/TestVADDTX.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/test/iSACTest.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/test/opus_test.cc View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
hlundin-webrtc
Ivo, Please, take a look.
5 years ago (2015-12-10 10:32:51 UTC) #2
ivoc
lgtm with some small nits. https://codereview.webrtc.org/1513223002/diff/1/webrtc/modules/audio_coding/test/EncodeDecodeTest.cc File webrtc/modules/audio_coding/test/EncodeDecodeTest.cc (right): https://codereview.webrtc.org/1513223002/diff/1/webrtc/modules/audio_coding/test/EncodeDecodeTest.cc#newcode67 webrtc/modules/audio_coding/test/EncodeDecodeTest.cc:67: static const int kTestLengthMs ...
5 years ago (2015-12-10 12:23:57 UTC) #3
hlundin-webrtc
Taking care of review comments
5 years ago (2015-12-10 12:47:04 UTC) #4
hlundin-webrtc
Taking care of review comments
5 years ago (2015-12-10 12:48:41 UTC) #5
hlundin-webrtc
https://codereview.webrtc.org/1513223002/diff/1/webrtc/modules/audio_coding/test/EncodeDecodeTest.cc File webrtc/modules/audio_coding/test/EncodeDecodeTest.cc (right): https://codereview.webrtc.org/1513223002/diff/1/webrtc/modules/audio_coding/test/EncodeDecodeTest.cc#newcode67 webrtc/modules/audio_coding/test/EncodeDecodeTest.cc:67: static const int kTestLengthMs = 500; On 2015/12/10 12:23:57, ...
5 years ago (2015-12-10 12:49:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1513223002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1513223002/40001
5 years ago (2015-12-10 12:50:19 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_rel/builds/11275)
5 years ago (2015-12-10 13:13:13 UTC) #12
hlundin-webrtc
Fixing win64 build
5 years ago (2015-12-10 13:47:57 UTC) #13
hlundin-webrtc
Committed patchset #3 (id:60001) manually as 4d68208a2089bfb7c9bf87f06722033a9e82a2a3 (presubmit successful).
5 years ago (2015-12-10 15:24:56 UTC) #15
commit-bot: I haz the power
5 years ago (2015-12-10 15:24:59 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4d68208a2089bfb7c9bf87f06722033a9e82a2a3
Cr-Commit-Position: refs/heads/master@{#10973}

Powered by Google App Engine
This is Rietveld 408576698