Added sinatra static benchmark

This commit is contained in:
visionmedia 2010-04-21 18:05:03 -07:00
parent c07bd31f61
commit b9306c4cca
2 changed files with 12 additions and 2 deletions

View File

@ -18,7 +18,7 @@ bm(){
node benchmarks/express/$file &
;;
thin)
thin -R benchmarks/thin/simple.ru -p 3000 start &
thin -R benchmarks/thin/$file -p 3000 start &
;;
esac
pid=$!
@ -32,4 +32,5 @@ log ab $ABFLAGS $ADDR
bm express simple.js
bm express static.js
bm thin simple.ru
bm thin simple.sinatra.ru
bm thin simple.sinatra.ru
bm thin static.sinatra.ru

View File

@ -0,0 +1,9 @@
require 'rubygems'
require 'sinatra'
get '/' do
send_file 'benchmarks/shared/jquery.js'
end
run Sinatra::Application