diff options
author | jbergstroem <bugs@bergstroem.nu> | 2011-11-14 14:43:49 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-08-13 18:52:06 +0200 |
commit | 8eccc417a7deb8d831dd30aabe22fdfb3d1a6a03 (patch) | |
tree | acb2ebf1d0949d48e6314e8a6f4916d13774f2a0 /benchmark | |
parent | c492d43f4817eb65cd251749bd074df7bb4ebc28 (diff) | |
download | android-node-v8-8eccc417a7deb8d831dd30aabe22fdfb3d1a6a03.tar.gz android-node-v8-8eccc417a7deb8d831dd30aabe22fdfb3d1a6a03.tar.bz2 android-node-v8-8eccc417a7deb8d831dd30aabe22fdfb3d1a6a03.zip |
bench: fetch port from env
http_simple.js honors $PORT, http_simple_bench.sh should too.
Diffstat (limited to 'benchmark')
-rwxr-xr-x | benchmark/http_simple_bench.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/benchmark/http_simple_bench.sh b/benchmark/http_simple_bench.sh index 6ba8e0664d..6948227974 100755 --- a/benchmark/http_simple_bench.sh +++ b/benchmark/http_simple_bench.sh @@ -1,7 +1,7 @@ #!/bin/bash SERVER=127.0.0.1 -PORT=8000 +PORT=${PORT:=8000} # You may want to configure your TCP settings to make many ports available # to node and ab. On macintosh use: @@ -19,9 +19,6 @@ if [ $SERVER == "127.0.0.1" ]; then sleep 1 fi -info=`curl -s http://$SERVER:$PORT/info` -eval $info - date=`date "+%Y%m%d%H%M%S"` ab_hello_world() { |