diff options
Diffstat (limited to 'benchmark/http_simple_bench.sh')
-rwxr-xr-x | benchmark/http_simple_bench.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/benchmark/http_simple_bench.sh b/benchmark/http_simple_bench.sh index 2066047b9e..30bd050b64 100755 --- a/benchmark/http_simple_bench.sh +++ b/benchmark/http_simple_bench.sh @@ -4,7 +4,7 @@ SERVER=127.0.0.1 PORT=${PORT:=8000} # 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: # sudo sysctl -w net.inet.ip.portrange.first=32768 # sudo sysctl -w net.inet.tcp.msl=1000 @@ -14,7 +14,7 @@ if [ ! -d benchmark/ ]; then fi if [ $SERVER == "127.0.0.1" ]; then - ./iojs benchmark/http_simple.js & + ./node benchmark/http_simple.js & node_pid=$! sleep 1 fi @@ -24,7 +24,7 @@ date=`date "+%Y%m%d%H%M%S"` ab_hello_world() { local type="$1" local ressize="$2" - if [ $type == "string" ]; then + if [ $type == "string" ]; then local uri="bytes/$ressize" else local uri="buffer/$ressize" @@ -54,7 +54,7 @@ ab_hello_world() { echo "webserver-rev: $rev" >> $summary_fn echo "webserver-uname: $uname" >> $summary_fn - grep Req $summary_fn + grep Req $summary_fn echo "Summary: $summary_fn" echo @@ -64,7 +64,7 @@ ab_hello_world() { ab_hello_world 'string' '1024' ab_hello_world 'buffer' '1024' -# 100k +# 100k ab_hello_world 'string' '102400' ab_hello_world 'buffer' '102400' |