Hello,

I just finished writing this module called light-router 
<https://github.com/herenow/light-router>. 
(https://github.com/herenow/light-router)

After profiling a simple Node.js API with a Redis backend, I noticed my API 
spent most of its time on the Express.js router. I did some tests, and 
removing the router layer gave my API an average of 40% more req/sec.

So I decided to write my own router, I know there are already a ton of 
routers, but they all seemed to have a big overhead :(, compared to Golang 
routers such as this one <http://www.gorillatoolkit.org/pkg/mux> that I use.

Here <https://github.com/herenow/node-router-benchmarks> are the Node.js 
routers I tested. (https://github.com/herenow/node-router-benchmarks)

I'm quite satisfied with the performance my router got, but I never really 
wrote a router and I'm not sure of what things I may have missed. So any 
feedback and tips is much appreciated :)

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/06425923-92dd-4738-8789-7e9f83291525%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to