--
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
You might want to try apache's ``ab`` utility to test this. For example,
using this simple server:
var http = require('http');
http.createServer(function (req, res) {
setInterval(function() {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}, 1000);
}).listen(3000, "127.0.0.1");
console.log('Server running at http://127.0.0.1:3000/');
and hitting it with:
ab -n 10 -c 10 http://127.0.0.1:3000/
the requests take about 1 second to execute, and the average time for
each request is around 1000 milliseconds. (Incidentally, -n 10 and -c 10
means total 10 requests with concurrency of 10, which would give you 10
requests initiated at the same time, so it should take exactly 1 second
to respond to _all_ 10 requests.)
For comparison, the average times for:
10 concurrent requests: 1s/req
100 concurrent requests: 1.05 s/req
1000 concurrent requests: 1.1 s/req
All pretty close to parallel, wouldn't you say?
--
Branko Vukelic
bra...@herdhound.com
bg.b...@gmail.com
Lead Developer
Herd Hound (tm) - Travel that doesn't bite
www.herdhound.com
Love coffee? You might love Loveffee, too.
loveffee.appspot.com
--
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
I was reading through the HTTP 1.1 spec
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html) for another
issue, and saw this:
"A single-user client SHOULD NOT maintain more than 2 connections with
any server or proxy."
Which likely explains your issue.
--
Brett Ritter / SwiftOne
swif...@swiftone.org
-Mikeal