This is cool!
I'm actually kind of shocked it performs better than gin (which is based on httprouter). Are you using a specialized prefix tree for the routes?
I'm actually kind of shocked it performs better than gin (which is based on httprouter). Are you using a specialized prefix tree for the routes?
This framework was submitted to HN before:https://news.ycombinator.com/item?id=9296524
In that discussion the author of gin mentions gin has a zero allocation router as well https://github.com/gin-gonic/gin/issues/249
On mobile right now, will look at the gin/echo benchmarks later (especially if the gin benchmarks compare the fasthttp engine of echo)
All echo benches have been commented out, last change about a year ago.
Tests do not use echo's fasthttp engine.