Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
bench: fetch port from env
Browse files Browse the repository at this point in the history
http_simple.js honors $PORT, http_simple_bench.sh should too.
  • Loading branch information
jbergstroem authored and bnoordhuis committed Aug 13, 2012
1 parent c492d43 commit 8eccc41
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions 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:
Expand All @@ -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() {
Expand Down

0 comments on commit 8eccc41

Please sign in to comment.