Permalink
Browse files

use common shell code

  • Loading branch information...
1 parent 2b9cc31 commit 8d759096c972816e423ebbe246bad4be1d32fe6f @gregwebs gregwebs committed Mar 15, 2011
Showing with 25 additions and 23 deletions.
  1. +1 −0 .gitignore
  2. +4 −3 pong/node.sh
  3. +4 −5 pong/php.sh
  4. +4 −1 pong/runall.sh
  5. +4 −3 pong/snap.sh
  6. +4 −8 pong/tornado.sh
  7. +4 −3 pong/warp.sh
View
@@ -1,3 +1,4 @@
+results/
*.swp
*.cgi
*.hi
View
@@ -1,7 +1,8 @@
#!/bin/bash -x
+DIR="$( cd "$( dirname "$0" )" && pwd )"
+d=$(readlink -f $DIR)
+source lib.sh
node node.js &
-nx=$!
-httperf --hog --server=localhost --port=3000 --uri=/ --rate=1000 --num-conns=200 --num-calls=100 --burst-length=20 > results/node
-kill $nx
+benchmark
View
@@ -1,13 +1,12 @@
#!/bin/bash -x
-
-d=$(readlink -f $(dirname $0))
+DIR="$( cd "$( dirname "$0" )" && pwd )"
+d=$(readlink -f $DIR)
+source lib.sh
php-fpm -n
sudo /usr/local/nginx/sbin/nginx -c $d/php.nginx.conf &
-nx=$!
-httperf --hog --server=localhost --port=3000 --uri=/ --rate=1000 --num-conns=200 --num-calls=100 --burst-length=20 > results/php
-sudo kill $nx
+benchmark
killall -KILL php-fpm
View
@@ -5,4 +5,7 @@ mkdir -p results
./php.sh
./tornado.sh
./node.sh
-./nginx.sh
+#./nginx.sh
+#./unicorn.sh
+#./thin.sh
+./goliath.sh
View
@@ -1,7 +1,8 @@
#!/bin/bash -x
+DIR="$( cd "$( dirname "$0" )" && pwd )"
+d=$(readlink -f $DIR)
+source lib.sh
./dist/build/snap/snap $* &
-nx=$!
-httperf --hog --server=localhost --port=3000 --uri=/ --rate=1000 --num-conns=200 --num-calls=100 --burst-length=20 > results/snap
-kill $nx
+benchmark
View
@@ -1,12 +1,8 @@
#!/bin/bash -x
-
-d=$(readlink -f $(dirname $0))
+DIR="$( cd "$( dirname "$0" )" && pwd )"
+d=$(readlink -f $DIR)
+source lib.sh
python tornado.py &
-py=$!
-
-sleep 1
-
-httperf --hog --server=localhost --port=3000 --uri=/ --rate=1000 --num-conns=200 --num-calls=100 --burst-length=20 > results/tornado
-kill $py
+benchmark
View
@@ -1,7 +1,8 @@
#!/bin/bash -x
+DIR="$( cd "$( dirname "$0" )" && pwd )"
+d=$(readlink -f $DIR)
+source lib.sh
./dist/build/warp/warp $* &
-nx=$!
-httperf --hog --server=localhost --port=3000 --uri=/ --rate=1000 --num-conns=200 --num-calls=100 --burst-length=20 > results/warp
-kill $nx
+benchmark

0 comments on commit 8d75909

Please sign in to comment.