Just curious, how likely is it that the average public application would use only singleton routes? I'm considering the reality of a "--singleton" option that might be added to other more popular routers.
On Monday, 16 June 2014 04:40:00 UTC-7, Leo Oshiro wrote: > > 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/1716ee3a-da86-4c2a-b9b5-08590cc386f5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
