I have implemented a simple echo server in both Go and Node.JS. On my current machine (4 GB RAM, 2 Cores 2.6) the results are:
Go: sent: 100% rcvd: 100%, fail: 0%, count: 10000 1950.98729712171 op/sec sent: 100% rcvd: 100%, fail: 0%, count: 5000 1935.92528691284 op/sec sent: 100% rcvd: 100%, fail: 0%, count: 50000 1941.62775741722 op/sec Node.JS: sent: 100% rcvd: 100%, fail: 0%, count: 10000 2664.94681658911 op/sec sent: 100% rcvd: 100%, fail: 0%, count: 5000 2740.86607750106 op/sec sent: 100% rcvd: 100%, fail: 0%, count: 50000 2829.08137679441 op/sec How is it tha Node.JS performs better; based on a dynamic language? Note: I love Go and I'll use it every chance I get. This is just a very very basic benchmark (maybe flawed); and if I implement the message parsing part too, I am not sure which one would do better because there would be a CPU vs I/O throttling in work. -- -- 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.
