From 8eccc417a7deb8d831dd30aabe22fdfb3d1a6a03 Mon Sep 17 00:00:00 2001 From: jbergstroem Date: Mon, 14 Nov 2011 14:43:49 +0100 Subject: [PATCH] bench: fetch port from env http_simple.js honors $PORT, http_simple_bench.sh should too. --- benchmark/http_simple_bench.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/benchmark/http_simple_bench.sh b/benchmark/http_simple_bench.sh index 6ba8e06..6948227 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() { -- 2.7.4