diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-04-09 21:46:33 +0000 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-04-09 21:46:33 +0000 |
commit | 4cc8a172f584270791abd1521789896927c538c7 (patch) | |
tree | 274f303953d927954d15f9980d7489aa68c697cb /test | |
parent | 206d59a56a0224e0a99d05e9cec7ad1c130f1af0 (diff) |
Tweaks
Diffstat (limited to 'test')
-rw-r--r-- | test/cpp/qps/smoke_test.cc | 11 | ||||
-rwxr-xr-x | test/cpp/qps/smoke_test.sh | 2 |
2 files changed, 8 insertions, 5 deletions
diff --git a/test/cpp/qps/smoke_test.cc b/test/cpp/qps/smoke_test.cc index a6b5ef60a5..5cdabb88a0 100644 --- a/test/cpp/qps/smoke_test.cc +++ b/test/cpp/qps/smoke_test.cc @@ -39,6 +39,9 @@ namespace grpc { namespace testing { +static const int WARMUP = 5; +static const int BENCHMARK = 10; + static void RunSynchronousUnaryPingPong() { gpr_log(GPR_INFO, "Running Synchronous Unary Ping Pong"); @@ -55,7 +58,7 @@ static void RunSynchronousUnaryPingPong() { server_config.set_enable_ssl(false); server_config.set_threads(1); - auto result = RunScenario(client_config, 1, server_config, 1, 30, 120); + auto result = RunScenario(client_config, 1, server_config, 1, WARMUP, BENCHMARK); gpr_log(GPR_INFO, "QPS: %.1f", result.latencies.Count() / @@ -84,7 +87,7 @@ static void RunSynchronousStreamingPingPong() { server_config.set_enable_ssl(false); server_config.set_threads(1); - auto result = RunScenario(client_config, 1, server_config, 1, 30, 120); + auto result = RunScenario(client_config, 1, server_config, 1, WARMUP, BENCHMARK); gpr_log(GPR_INFO, "QPS: %.1f", result.latencies.Count() / @@ -114,7 +117,7 @@ static void RunAsyncUnaryPingPong() { server_config.set_enable_ssl(false); server_config.set_threads(1); - auto result = RunScenario(client_config, 1, server_config, 1, 30, 120); + auto result = RunScenario(client_config, 1, server_config, 1, WARMUP, BENCHMARK); gpr_log(GPR_INFO, "QPS: %.1f", result.latencies.Count() / @@ -144,7 +147,7 @@ static void RunQPS() { server_config.set_enable_ssl(false); server_config.set_threads(4); - auto result = RunScenario(client_config, 1, server_config, 1, 30, 120); + auto result = RunScenario(client_config, 1, server_config, 1, WARMUP, BENCHMARK); auto qps = result.latencies.Count() / diff --git a/test/cpp/qps/smoke_test.sh b/test/cpp/qps/smoke_test.sh index 431a29705e..ba7f0a4f27 100755 --- a/test/cpp/qps/smoke_test.sh +++ b/test/cpp/qps/smoke_test.sh @@ -8,7 +8,7 @@ cd $(dirname $0)/../../.. killall qps_worker || true -config=dbg +config=opt NUMCPUS=`python2.7 -c 'import multiprocessing; print multiprocessing.cpu_count()'` |