siege.js is a http benchmark module.
features:
- benchmark with keep alive connection, (useful on mac os)
- colorful report
- multiple task define
- cookie support (>= 0.0.2)
example:
siege()
.on(3000)
.for(10000).times
.get('/')
.attack()
for a nodejs app.js, which module.exports = function(req, res), you can use siege start your server, before benchmark, and close server after benchmark.
siege(__dirname + '/app.js')
.on(4000)
.withCookie
.for(10000).times
.concurrent(100)
.get('/set-cookie')
.get('/get-cookie')
.get('/').withoutCookie
.attack()
enjoy it.
by kissjs.org.
We are looking for collaborators.
11 回复