bench: fetch port from env
http_simple.js honors $PORT, http_simple_bench.sh should too.
This commit is contained in:
parent
c492d43f48
commit
8eccc417a7
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SERVER=127.0.0.1
|
SERVER=127.0.0.1
|
||||||
PORT=8000
|
PORT=${PORT:=8000}
|
||||||
|
|
||||||
# You may want to configure your TCP settings to make many ports available
|
# You may want to configure your TCP settings to make many ports available
|
||||||
# to node and ab. On macintosh use:
|
# to node and ab. On macintosh use:
|
||||||
@ -19,9 +19,6 @@ if [ $SERVER == "127.0.0.1" ]; then
|
|||||||
sleep 1
|
sleep 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
info=`curl -s http://$SERVER:$PORT/info`
|
|
||||||
eval $info
|
|
||||||
|
|
||||||
date=`date "+%Y%m%d%H%M%S"`
|
date=`date "+%Y%m%d%H%M%S"`
|
||||||
|
|
||||||
ab_hello_world() {
|
ab_hello_world() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user