mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
Added larger ~550kb static benchmarks
This commit is contained in:
parent
0d02ea43e1
commit
31b53eae39
15
benchmarks/express/static.large.js
Normal file
15
benchmarks/express/static.large.js
Normal 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()
|
||||
|
|
@ -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.ru
|
||||
bm thin static.sinatra.large.ru
|
||||
145
benchmarks/shared/huge.js
Normal file
145
benchmarks/shared/huge.js
Normal file
File diff suppressed because one or more lines are too long
9
benchmarks/thin/static.sinatra.large.ru
Normal file
9
benchmarks/thin/static.sinatra.large.ru
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
require 'rubygems'
|
||||
require 'sinatra'
|
||||
|
||||
get '/' do
|
||||
send_file 'benchmarks/shared/huge.js'
|
||||
end
|
||||
|
||||
run Sinatra::Application
|
||||
Loading…
Reference in New Issue
Block a user