Permalink
Browse files

bench: fetch port from env

http_simple.js honors $PORT, http_simple_bench.sh should too.
  • Loading branch information...
1 parent c492d43 commit 8eccc417a7deb8d831dd30aabe22fdfb3d1a6a03 @jbergstroem jbergstroem committed with bnoordhuis Nov 14, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 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() {

0 comments on commit 8eccc41

Please sign in to comment.