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

Unified Diff: ipc/ipc_perftest_support.cc

Issue 2603753004: Reduce ipc_perftests iterations in debug builds (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_perftest_support.cc
diff --git a/ipc/ipc_perftest_support.cc b/ipc/ipc_perftest_support.cc
index 742fcb7a494dd2572c342a2a2a22ae0b7eedc602..10516bc7a1bc45a24d9340b042b6fe6f557a4838 100644
--- a/ipc/ipc_perftest_support.cc
+++ b/ipc/ipc_perftest_support.cc
@@ -238,12 +238,18 @@ std::vector<PingPongTestParams>
IPCChannelPerfTestBase::GetDefaultTestParams() {
// Test several sizes. We use 12^N for message size, and limit the message
// count to keep the test duration reasonable.
+#ifdef NDEBUG
+ const int kMultiplier = 100;
+#else
+ // Debug builds on Windows run these tests orders of magnitude more slowly.
+ const int kMultiplier = 1;
+#endif
std::vector<PingPongTestParams> list;
- list.push_back(PingPongTestParams(12, 50000));
- list.push_back(PingPongTestParams(144, 50000));
- list.push_back(PingPongTestParams(1728, 50000));
- list.push_back(PingPongTestParams(20736, 12000));
- list.push_back(PingPongTestParams(248832, 1000));
+ list.push_back(PingPongTestParams(12, 500 * kMultiplier));
+ list.push_back(PingPongTestParams(144, 500 * kMultiplier));
+ list.push_back(PingPongTestParams(1728, 500 * kMultiplier));
+ list.push_back(PingPongTestParams(20736, 120 * kMultiplier));
+ list.push_back(PingPongTestParams(248832, 10 * kMultiplier));
return list;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698