Added larger ~550kb static benchmarks

This commit is contained in:
visionmedia 2010-04-22 10:41:04 -07:00
parent 0d02ea43e1
commit 31b53eae39
4 changed files with 172 additions and 1 deletions

View File

@ -0,0 +1,15 @@
require.paths.unshift('lib')
require('express')
require('express/plugins')
configure(function(){
use(Static)
set('root', __dirname)
})
get('/', function(){
this.sendfile('benchmarks/shared/huge.js', { bufferSize: 8 * 1024 })
})
run()

View File

@ -31,6 +31,8 @@ bm(){
log ab $ABFLAGS $ADDR
bm express simple.js
bm express static.js
bm express static.large.js
bm thin simple.ru
bm thin simple.sinatra.ru
bm thin static.sinatra.ru
bm thin static.sinatra.large.ru

145
benchmarks/shared/huge.js Normal file

File diff suppressed because one or more lines are too long

View File

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