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

Issue 139303022: Replace use of base::RandXXX() with rand() to improve runtime of SeekableBufferTest. (Closed)

Created:
6 years, 11 months ago by miu
Modified:
6 years, 11 months ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org, Derek Bruening
Visibility:
Public.

Description

Replace use of base::RandXXX() with rand() to improve runtime of SeekableBufferTest. r244419 replaced rand() with base::RandXXX(), but this has caused Windows Dr. Memory runs to take 100X longer to run. Since the test doesn't need good random numbers, this change reverts back to using the rand() in <cstdlib>. TEST=Confirmed media_unittests performance is now on-par with that prior to r244419. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245690

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M media/base/seekable_buffer_unittest.cc View 2 chunks +10 lines, -3 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
miu
Dale: PTAL (description explains).
6 years, 11 months ago (2014-01-17 22:36:12 UTC) #1
DaleCurtis
lgtm otherwise. https://codereview.chromium.org/139303022/diff/1/media/base/seekable_buffer_unittest.cc File media/base/seekable_buffer_unittest.cc (right): https://codereview.chromium.org/139303022/diff/1/media/base/seekable_buffer_unittest.cc#newcode22 media/base/seekable_buffer_unittest.cc:22: static const int kDataSize = 409600; Geez ...
6 years, 11 months ago (2014-01-17 23:28:21 UTC) #2
miu
On 2014/01/17 23:28:21, DaleCurtis wrote: > https://codereview.chromium.org/139303022/diff/1/media/base/seekable_buffer_unittest.cc#newcode22 > media/base/seekable_buffer_unittest.cc:22: static const int kDataSize = 409600; ...
6 years, 11 months ago (2014-01-17 23:36:39 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/139303022/1
6 years, 11 months ago (2014-01-17 23:37:07 UTC) #4
commit-bot: I haz the power
6 years, 11 months ago (2014-01-18 01:01:51 UTC) #5
Message was sent while issue was closed.
Change committed as 245690

Powered by Google App Engine
This is Rietveld 408576698