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

Issue 2354263007: Minor fixes for protocol perf tests (Closed)

Created:
4 years, 3 months ago by Sergey Ulanov
Modified:
4 years, 2 months ago
Reviewers:
Irfan
CC:
chromium-reviews, chromoting-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Minor fixes for protocol perf tests 1. Avoid base::RandDouble() in fake sockets. On posix base::RandBytes() reads from /dev/urandom. On linux this causes significant CPU consumption in rngd, comparable to CPU time consumed by the test itself. The test doesn't need crypto-quality random numbers, changed it to use std::rand(). 2. Removed some outdated code from protocol_perftest.cc. 3. Added 2Mpbs tests. Committed: https://crrev.com/6206df6c1bea743a8cdc01be1fc0c43ce15d3e60 Cr-Commit-Position: refs/heads/master@{#421337}

Patch Set 1 #

Total comments: 3

Patch Set 2 : no rand #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -52 lines) Patch
M remoting/test/fake_socket_factory.cc View 1 3 chunks +10 lines, -7 lines 0 comments Download
M remoting/test/protocol_perftest.cc View 1 chunk +5 lines, -45 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
Sergey Ulanov
4 years, 3 months ago (2016-09-23 21:10:03 UTC) #3
Irfan
https://codereview.chromium.org/2354263007/diff/1/remoting/test/fake_socket_factory.cc File remoting/test/fake_socket_factory.cc (right): https://codereview.chromium.org/2354263007/diff/1/remoting/test/fake_socket_factory.cc#newcode19 remoting/test/fake_socket_factory.cc:19: #include "base/rand_util.h" Do you still need the base/rand_util ? ...
4 years, 2 months ago (2016-09-27 15:38:35 UTC) #4
Irfan
https://codereview.chromium.org/2354263007/diff/1/remoting/test/fake_socket_factory.cc File remoting/test/fake_socket_factory.cc (right): https://codereview.chromium.org/2354263007/diff/1/remoting/test/fake_socket_factory.cc#newcode19 remoting/test/fake_socket_factory.cc:19: #include "base/rand_util.h" On 2016/09/27 15:38:34, Irfan wrote: > Do ...
4 years, 2 months ago (2016-09-27 15:39:45 UTC) #5
Sergey Ulanov
https://codereview.chromium.org/2354263007/diff/1/remoting/test/fake_socket_factory.cc File remoting/test/fake_socket_factory.cc (right): https://codereview.chromium.org/2354263007/diff/1/remoting/test/fake_socket_factory.cc#newcode19 remoting/test/fake_socket_factory.cc:19: #include "base/rand_util.h" On 2016/09/27 15:38:34, Irfan wrote: > Do ...
4 years, 2 months ago (2016-09-27 17:15:07 UTC) #6
Irfan
lgtm
4 years, 2 months ago (2016-09-27 20:54:38 UTC) #9
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/2354263007/20001
4 years, 2 months ago (2016-09-27 21:00:48 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-09-27 21:24:06 UTC) #13
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 21:25:51 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6206df6c1bea743a8cdc01be1fc0c43ce15d3e60
Cr-Commit-Position: refs/heads/master@{#421337}

Powered by Google App Engine
This is Rietveld 408576698