I looked into your code. It's just ordinary server code. I always struggle with node data transfer in sending multiple large binary objects simultaneously. It is good to see any comparison.
On Saturday, June 22, 2013 11:03:42 PM UTC+7, Matteo Collina wrote: > > Hi Kaveh, > > the MQTT.js (https://github.com/adamvr/MQTT.js) library can crank up to > 30000 msg/sec, with my recent PR ( > https://github.com/adamvr/MQTT.js/pull/113) and on my 2011 Macbook Air. > MQTT is a binary protocol, so things might be different. > > Ideally you should write a custom WriteStream and avoid Buffer#slice > whenever you can. > In your code you are doing it wrong, hooking it up on the 'data' event is > not the way to go if you want to achieve performance. > > Let me know. > > Cheers, > > Matteo > -- -- 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.
