So, correct me if I'm wrong, but your initial benchmark results were skewed
because of how you've implemented your HTTP module.
That said, you do see to get some performance boost over the standard net
module, I'm guessing this may be because you're not communicating over
STDOUT/STDIN pipes to child processes, but instead directly to the
individual threads?
– Micheil
On 24/08/2012, at 4:05 PM, Robert L wrote:
> Hi Micheil,
>
> You have mentioned me what I have miss.
> I was only focused on the performance of http service.
> After I have done the benchmark with cluster using `net`. I was surprised that `net` are not that slow as`http`.
>
> Here is the result:
> >ab -n 200000 -c xxxx
127.0.0.1:8080/
> 200client 1000client 2000client
> node_cluster 21001.89 19000.00 18717.28
> tj wite node 23792.30 23175.49 22707.17
> tj simple 24220.45 23182.52 22709.86
>
>
> >ab -n 200000 -c xxxx -k
127.0.0.1:8080/
> 200client 1000client 2000client
> node_cluster 21001.89 136077.29 18717.28
> tj wite node 23792.30 109830.13 22707.17
> tj simple 24220.45 105600.24 22709.86
>
>
> >weighttp -n 200000 -c xxxx -t 8
127.0.0.1:8080/
> 200client 1000client 2000client
> node_cluster 48644 41211 43047
> tj wite node 78133 76878 72929
> tj simple 78061 73478 72209
>
>
> >weighttp -n 200000 -c xxxx -t 8 -k
127.0.0.1:8080/
> 200client 1000client 2000client
> node_cluster 168867 163490 161464
> tj wite node 179399 195751 178095
> tj simple 289362 281941 256841
>
>
> Thread.js get a bigger advantage when benchmark with weighttp that get multi thread support.
> Currently I implement a simply http service in javascript and it can achieve 60,000+ both connections/sec and requests/sec.
> I will try to implement a method for programs to register their protocol. When that time, I'll do another benchmark base on http service.
>
> Sincerely,
> Robert
>
>
>
> Micheil Smith於 2012年8月24日星期五UTC+8上午5時20分08秒寫道: