From 0a9bac929e1cafd0596611c178ed52a9b9a6dde9 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Mon, 7 Dec 2015 14:59:31 -0800 Subject: [PATCH] Reverted changes to single_run_localhost.sh --- test/cpp/qps/single_run_localhost.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/cpp/qps/single_run_localhost.sh b/test/cpp/qps/single_run_localhost.sh index 9e70aa68e2d..f5356f18343 100755 --- a/test/cpp/qps/single_run_localhost.sh +++ b/test/cpp/qps/single_run_localhost.sh @@ -34,15 +34,17 @@ set -ex cd $(dirname $0)/../../.. +killall qps_worker || true + config=opt NUMCPUS=`python2.7 -c 'import multiprocessing; print multiprocessing.cpu_count()'` -make CONFIG=$config qps_driver -j$NUMCPUS +make CONFIG=$config qps_worker qps_driver -j$NUMCPUS -node src/node/performance/worker_server.js --driver_port=10000 & +bins/$config/qps_worker -driver_port 10000 & PID1=$! -node src/node/performance/worker_server.js --driver_port=10010 & +bins/$config/qps_worker -driver_port 10010 & PID2=$! export QPS_WORKERS="localhost:10000,localhost:10010" @@ -51,3 +53,4 @@ bins/$config/qps_driver $* kill -2 $PID1 $PID2 wait +