Re:Why I wrote gocraft/web
by recuter on Thursday December 12, 2013 @06:13PM
(#6897954)
So Gocraft/web stays around ~4ms no matter how many routes you throw at it essentially but Martini and others are ~20ms and sometimes much more? That can really add up.
Most web apps don't have quite so many routes typically but its not unreasonable and I'm surprised routing is allowed to get so expensive in the other frameworks. Kudos to you, I was psyched about Martini so I'm going to see about fixing that for it at least.
Edit: D'oh. Need coffee. No wonder it looked really bad to me, up to 70ms to do routing is abhorrent. Carry on. :)
Re:Why I wrote gocraft/web
by druska on Thursday December 12, 2013 @08:21PM
(#6898505)
Additionally, some of these libs are unoptimized and performance will change with time.
Either way, since the performance differences are so small, it's probably best to go with what's easiest to work with.
Most web apps don't have quite so many routes typically but its not unreasonable and I'm surprised routing is allowed to get so expensive in the other frameworks. Kudos to you, I was psyched about Martini so I'm going to see about fixing that for it at least.
Edit: D'oh. Need coffee. No wonder it looked really bad to me, up to 70ms to do routing is abhorrent. Carry on. :)