Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Get happstack running properly

  • Loading branch information...
commit d3f190899e7b5156b8d3675277be58f10d76556b 1 parent fdf9f5d
@snoyberg snoyberg authored
View
1  pong/happstack.hs
@@ -4,4 +4,5 @@ import Happstack.Server
main = simpleHTTP nullConf
{ logAccess = Nothing
+ , port = 3000
} $ ok "PONG"
View
2  pong/php.sh
@@ -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
View
1  pong/runall.sh
@@ -1,3 +1,4 @@
+rmdir -rf results
mkdir -p results
./snap.sh $*
View
3  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
View
1  setup.sh
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.