Skip to content

Commit

Permalink
Use three different load-factors and document load-factor variable
Browse files Browse the repository at this point in the history
  • Loading branch information
vjpai committed Feb 17, 2016
1 parent 251b781 commit ed3cd42
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions test/cpp/qps/qps-sweep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ for secure in true false; do
--async_client_threads=0 --async_server_threads=0 --secure_test=$secure \
--num_servers=1 --num_clients=0

# Scenario 3: Latency at near-peak load (all clients equally loaded)
"$bins"/opt/qps_driver --rpc_type=STREAMING --client_type=ASYNC_CLIENT \
--server_type=ASYNC_GENERIC_SERVER --outstanding_rpcs_per_channel=100 \
--client_channels=64 --bbuf_req_size=0 --bbuf_resp_size=0 \
--async_client_threads=0 --async_server_threads=0 --secure_test=$secure \
--num_servers=1 --num_clients=0 --poisson_load=`awk '$5 == "QPS:" \
{print int(0.7 * $6); exit}' /tmp/qps-test.$$`
# Scenario 3: Latency at sub-peak load (all clients equally loaded)
for loadfactor in 0.2 0.5 0.7; do
"$bins"/opt/qps_driver --rpc_type=STREAMING --client_type=ASYNC_CLIENT \
--server_type=ASYNC_GENERIC_SERVER --outstanding_rpcs_per_channel=100 \
--client_channels=64 --bbuf_req_size=0 --bbuf_resp_size=0 \
--async_client_threads=0 --async_server_threads=0 --secure_test=$secure \
--num_servers=1 --num_clients=0 --poisson_load=`awk -v lf=$loadfactor \
'$5 == "QPS:" {print int(lf * $6); exit}' /tmp/qps-test.$$`
done

rm /tmp/qps-test.$$

Expand Down

0 comments on commit ed3cd42

Please sign in to comment.