Hi everybody, I have worte a node.js addon, to support multi thread with v8, and act as a ipv4/v6 server, please give it a try. Your feedback is very welcome.
Thread.js support: 1. Act as a network layer of node.js. 2. Register a file to thread - you then run javascript file within the thread along with the network layer. Thread.js support require(), console.log, events.Emitter, net.createConnection and typedarray in thread mode for now. Benchmark is done by using weighttp on a Ubuntu 12.04 LTS 64bits server with a i7 2.67G 4cores cpu. Performance of a simple 'Hello world' server: 60K+ concurrent connections per second. 150K~200K concurrent requests per second. And it's scale mainly by cpu core number. You can get higher benchmark by adding more cpu power. Throughout of 50Kbytes response server: using typedarray: 1.7Gbytes per second. using javascript string: 290Mbytes per second. Stability: Each connection object is reused, thus the memory allocation is just at new age, don't need to face gc problem, and it can run days to weeks without restart the program. You can prove it by running node with v8 flag '--trace_gc --trace_gc_verbose' Detail benchmark output and test script is supported. Because it's written with the support of pthread and epoll , thread.js is Linux only. And please support me if it make some useful for your application. Thanks very much. homepage: http://rob333.github.com/thread.js/ github: https://github.com/rob333/thread.js -- 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
