Fix up single run test

Enable reasonable default if resp size not specified
reviewable/pr3905/r8
vjpai 9 years ago
parent ce84670628
commit 783c144afa
  1. 5
      test/cpp/qps/qps_driver.cc
  2. 34
      test/cpp/qps/single_run_localhost.sh

@ -108,7 +108,10 @@ static void QpsDriver() {
params->set_req_size(FLAGS_simple_req_size);
}
} else {
GPR_ASSERT(false); // not yet implemented
// choose a reasonable default
auto params =
client_config.mutable_payload_config()->mutable_simple_params();
params->set_resp_size(1);
}
client_config.set_async_client_threads(FLAGS_async_client_threads);

@ -30,35 +30,27 @@
# performs a single qps run with one client and one server
set -
ex
set -ex
cd
$(dirname $0) /
../../
..
cd $(dirname $0)/../../..
killall qps_worker
|| true
killall qps_worker || true
config=opt
NUMCPUS =`python2 .7 - c
'import multiprocessing; print multiprocessing.cpu_count()'`
NUMCPUS=`python2.7 -c 'import multiprocessing; print multiprocessing.cpu_count()'`
make CONFIG = $config qps_worker qps_driver -
j$NUMCPUS
make CONFIG=$config qps_worker qps_driver -j$NUMCPUS
bins
/ $config / qps_worker
- driver_port
10000 &PID1 = $ !bins / $config / qps_worker
- driver_port 10010 &PID2 = $ !
bins/$config/qps_worker -driver_port 10000 &
PID1=$!
bins/$config/qps_worker -driver_port 10010 &
PID2=$!
export QPS_WORKERS="localhost:10000,localhost:10010"
bins
/ $config / qps_driver $ *
bins/$config/qps_driver $*
kill -2 $PID1 $PID2
wait
kill
- 2 $PID1 $PID2 wait

Loading…
Cancel
Save