mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 00:19:48 +01:00
Added sinatra static benchmark
This commit is contained in:
parent
c07bd31f61
commit
b9306c4cca
|
|
@ -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
|
||||
9
benchmarks/thin/static.sinatra.ru
Normal file
9
benchmarks/thin/static.sinatra.ru
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
require 'rubygems'
|
||||
require 'sinatra'
|
||||
|
||||
get '/' do
|
||||
send_file 'benchmarks/shared/jquery.js'
|
||||
end
|
||||
|
||||
run Sinatra::Application
|
||||
Loading…
Reference in New Issue
Block a user