Skip to content

Commit

Permalink
Get happstack running properly
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Mar 17, 2011
1 parent fdf9f5d commit d3f1908
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions pong/happstack.hs
Expand Up @@ -4,4 +4,5 @@ import Happstack.Server

main = simpleHTTP nullConf
{ logAccess = Nothing
, port = 3000
} $ ok "PONG"
2 changes: 1 addition & 1 deletion pong/php.sh
Expand Up @@ -5,7 +5,7 @@ source lib.sh

php-fpm -n -y php-fpm.conf &

sudo /usr/local/nginx/sbin/nginx -c $d/php.nginx.conf &
/usr/local/nginx/sbin/nginx -c $d/php.nginx.conf &

benchmark

Expand Down
1 change: 1 addition & 0 deletions pong/runall.sh
@@ -1,3 +1,4 @@
rmdir -rf results
mkdir -p results

./snap.sh $*
Expand Down
3 changes: 3 additions & 0 deletions pong/summary.sh
@@ -0,0 +1,3 @@
#!/bin/bash

grep 'Request rate' -rn results/ | sed 's@results/\([^:]*\).*rate: \(.*\) req/s.*@\1 \2@' | tee results-summary
1 change: 1 addition & 0 deletions setup.sh
Expand Up @@ -93,4 +93,5 @@ ln -s ~/tornado-1.2.1/tornado

## Run all benchmarks
./runall.sh
./summary.sh
grep 'Request rate' -rn results/ | sed 's@results/\([^:]*\).*rate: \(.*\) req/s.*@\1 \2@' > results-summary

0 comments on commit d3f1908

Please sign in to comment.