Again I should note that this is a very simple benchmark (a TCP echo 
server, on this machine; 4 GB RAM, 2.66 dual core). And Node may totally 
lose if I bring the message parsing in.

Of-course I intend to use Edge.js 
(http://tjanczuk.github.io/edge/<http://tjanczuk.github.io/edge/#/>) 
to do the heavy lifting. I wish Node had a good FFI and I would like to see 
a project like Edge.js for Go.

@Ket These are the results:

A TCP Echo Server

1) Message: "ping"

Go 1.1 (concurrency: 2 core)
----------------------------
sent: 100% rcvd: 100%, fail: 0%, count: 5000
1636.58787270711 op/sec
sent: 100% rcvd: 100%, fail: 0%, count: 15000
1799.52633587598 op/sec
sent: 100% rcvd: 100%, fail: 0%, count: 50000
1803.73687672296 op/sec

Node.JS 0.10.12 (clustered: 2 cores)
------------------------------------
sent: 100% rcvd: 100%, fail: 0%, count: 5000
2704.11161793975 op/sec
sent: 100% rcvd: 100%, fail: 0%, count: 15000
2890.51876891881 op/sec
sent: 100% rcvd: 100%, fail: 0%, count: 50000
2916.40015872916 op/sec

2) Message: 8 KB byte array

Go 1.1 (concurrency: 2 core)
----------------------------
sent: 100% rcvd: 100%, fail: 0%, count: 100
9.93512571545448 op/sec
sent: 100% rcvd: 100%, fail: 0%, count: 500
9.90348220735039 op/sec

Node.JS 0.10.12 (clustered: 2 cores)
------------------------------------
sent: 100% rcvd: 100%, fail: 0%, count: 100
9.88128857062181 op/sec
sent: 100% rcvd: 100%, fail: 0%, count: 500
9.92767452827498 op/sec

2) Message: 8 KB byte array

Go 1.1 (concurrency: 6 * 2 core)
--------------------------------
sent: 100% rcvd: 100%, fail: 0%, count: 100
9.95100354726409 op/sec
sent: 100% rcvd: 100%, fail: 0%, count: 500
9.8849644185269 op/sec

Node.JS 0.10.12 (clustered: 6 * 2 cores)
----------------------------------------
sent: 100% rcvd: 100%, fail: 0%, count: 100
9.89996726575824 op/sec
sent: 100% rcvd: 100%, fail: 0%, count: 500
9.94040223885374 op/sec

As you see Node and Go has a similar performance for a 8 KB message (Node 
slightly better at greater numbers, Go slightly better at lesser numbers).

-- 
-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
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 nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to