Hi, i've been running 2 Node.js servers for months with one on Node.js version 0.8.22 and the other 0.10.24.
Just out of curiosity, i kicked off a HelloWorld server (the one from Node.js landing page with only port number change) with the two Node.js versions and ran ab (Apache bench) against the HelloWorld servers. Both servers and the ab command ran on the same RHEL 6.2 box with very light system load. i ran the ab tests about 10 times for each version and the results are pretty consistent. To my great surprise, the 0.10.24 server is about 40% slower than the 0.8.22 one. The total time taken for 0.10.24 is 15.623 seconds but only 11.183 for 0.8.22. Is this expected? Thanks. The complete output from ab is included below (with hostname replaced by foo.bar.com) for reference: % ab -r -n 100000 -c 1000 http://foo.bar.com:17822/ ======================================================== <0.10.24> This is ApacheBench, Version 2.3 <$Revision: 1430300 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking foo.bar.com (be patient) Completed 10000 requests Completed 20000 requests Completed 30000 requests Completed 40000 requests Completed 50000 requests Completed 60000 requests Completed 70000 requests Completed 80000 requests Completed 90000 requests Completed 100000 requests Finished 100000 requests Server Software: Server Hostname: foo.bar.com Server Port: 17822 Document Path: / Document Length: 35 bytes Concurrency Level: 1000 Time taken for tests: 15.623 seconds Complete requests: 100000 Failed requests: 0 Write errors: 0 Total transferred: 13600000 bytes HTML transferred: 3500000 bytes Requests per second: 6400.84 [#/sec] (mean) Time per request: 156.229 [ms] (mean) Time per request: 0.156 [ms] (mean, across all concurrent requests) Transfer rate: 850.11 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 97 810.8 0 9002 Processing: 7 32 67.8 22 3058 Waiting: 7 32 67.8 22 3058 Total: 18 129 843.7 22 12058 Percentage of the requests served within a certain time (ms) 50% 22 66% 40 75% 40 80% 40 90% 46 95% 50 98% 78 99% 3051 100% 12058 (longest request) ======================================================== <0.8.22> This is ApacheBench, Version 2.3 <$Revision: 1430300 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking foo.bar.com (be patient) Completed 10000 requests Completed 20000 requests Completed 30000 requests Completed 40000 requests Completed 50000 requests Completed 60000 requests Completed 70000 requests Completed 80000 requests Completed 90000 requests Completed 100000 requests Finished 100000 requests Server Software: Server Hostname: foo.bar.com Server Port: 17822 Document Path: / Document Length: 34 bytes Concurrency Level: 1000 Time taken for tests: 11.183 seconds Complete requests: 100000 Failed requests: 0 Write errors: 0 Total transferred: 13500000 bytes HTML transferred: 3400000 bytes Requests per second: 8941.77 [#/sec] (mean) Time per request: 111.835 [ms] (mean) Time per request: 0.112 [ms] (mean, across all concurrent requests) Transfer rate: 1178.85 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 51 534.8 0 9001 Processing: 0 15 13.0 14 232 Waiting: 0 15 13.0 14 232 Total: 2 66 536.4 15 9219 Percentage of the requests served within a certain time (ms) 50% 15 66% 19 75% 21 80% 22 90% 24 95% 27 98% 54 99% 3004 100% 9219 (longest request) -- -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
