My problem is, if I start a task 'GET / for 100000 times' it response in 7.2k rps. If I separate the task to 10 task, 'GET / for 10000 times', the first task response fast, but the other tasks slower and slower.
http://stackoverflow.com/questions/10328492/why-my-request-slower-and-slower--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
function sendRequest
02 if(running > concurrent) return;
03 if(running ++ < concurrent && left >0) process.nextTick(sendRequest);
http.request(reqOptions, function(res) {
res.on('end', function() {
running --;
08 if(--left == 0) {
09 nextTask()
10 }
process.nextTick(sendRequest)
});
});
}
siege(__dirname + '/app.js').concurrent(100).for(10000).times.get('/').post('/').attack()
siege(__dirname + '/app.js').concurrent(100).for(10000).times.withCookie().with304().post('/login', {username:'username', password: 'password}).for(1).times.get('/').attack()
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en