Skip to content
Browse files

Minor changes to run scripts, added node.sh

  • Loading branch information...
1 parent b231760 commit 36f8676b2819b007d9cfcd89ba57581720d16883 @snoyberg snoyberg committed
Showing with 20 additions and 13 deletions.
  1. +3 −3 pong/nginx.sh
  2. +7 −0 pong/node.sh
  3. +2 −2 pong/php.sh
  4. +2 −2 pong/python.sh
  5. +4 −2 pong/runall.sh
  6. +1 −2 pong/snap.sh
  7. +1 −2 pong/warp.sh
View
6 pong/nginx.sh
@@ -2,8 +2,8 @@
d=$(readlink -f $(dirname $0))
-/usr/local/nginx/sbin/nginx -c $d/nginx.conf &
+sudo /usr/local/nginx/sbin/nginx -c $d/nginx.conf &
nx=$!
-httperf --hog --server=localhost --port=3000 --uri=/ --rate=1000 --num-conns=200 --num-calls=100 --burst-length=20
-kill $nx
+httperf --hog --server=localhost --port=3000 --uri=/ --rate=1000 --num-conns=200 --num-calls=100 --burst-length=20 > results/nginx
+sudo kill $nx
View
7 pong/node.sh
@@ -0,0 +1,7 @@
+#!/bin/bash -x
+
+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
View
4 pong/php.sh
@@ -4,10 +4,10 @@ d=$(readlink -f $(dirname $0))
php-fpm -n
-/usr/local/nginx/sbin/nginx -c $d/php.nginx.conf &
+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
-kill $nx
+sudo kill $nx
killall -KILL php-fpm
View
4 pong/python.sh
@@ -7,9 +7,9 @@ py=$!
sleep 1
-/usr/local/nginx/sbin/nginx -c $d/python.nginx.conf &
+sudo /usr/local/nginx/sbin/nginx -c $d/python.nginx.conf &
nx=$!
httperf --hog --server=localhost --port=3000 --uri=/ --rate=1000 --num-conns=200 --num-calls=100 --burst-length=20 > results/python
-kill $nx
+sudo kill $nx
kill $py
View
6 pong/runall.sh
@@ -3,7 +3,9 @@ mkdir -p results
cabal configure
cabal build
-./snap.sh
-./warp.sh
+./snap.sh $*
+./warp.sh $*
./php.sh
./python.sh
+./node.sh
+./nginx.sh
View
3 pong/snap.sh
@@ -1,8 +1,7 @@
#!/bin/bash -x
-./dist/build/snap/snap &
+./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
-
View
3 pong/warp.sh
@@ -1,8 +1,7 @@
#!/bin/bash -x
-./dist/build/warp/warp &
+./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
-

0 comments on commit 36f8676

Please sign in to comment.
Something went wrong with that request. Please try again.