benchmark: use project version rather than installed version

This commit is contained in:
Micooz 2017-12-13 10:01:00 +08:00
parent 9fbc86057c
commit 78a67c0709
No known key found for this signature in database
GPG Key ID: B100C9A159B1EBA0

@ -9,10 +9,14 @@ client_conf=$1
server_conf=$2
seconds=$3
blinksocks -c ${client_conf} > /dev/null &
BLINKSOCKS="node bin/start.js"
export NODE_ENV=production
${BLINKSOCKS} -c ${client_conf} > /dev/null &
bs_client_pid=$!
blinksocks -c ${server_conf} > /dev/null &
${BLINKSOCKS} -c ${server_conf} > /dev/null &
bs_server_pid=$!
# because cluster mode will take a while to start