3 ms·
Not totally sure, but I think Gin is faster because it uses HttpRouter under the covers.
by beckler 12y ago
Not totally sure, but I think Gin is faster because it uses HttpRouter under the covers.
- ch4s3 12y agoIndeed it does. http://gin-gonic.github.io/gin/ http://gin-gonic.github.io/gin/
- dougbarrett 12y agoAnd httprouter is a bit limited as far as what you can do with the url rules, understadibly. I've documented it here: https://www.dougcodes.com/go-lang/gin-gonic-may-be-40x-faster-than-martini-but-it-is-not-better https://www.dougcodes.com/go-lang/gin-gonic-may-be-40x-faste... and here: https://www.dougcodes.com/go-lang/martini-to-gin-back-to-martini-and-on-to-negroni-and-mux https://www.dougcodes.com/go-lang/martini-to-gin-back-to-mar... Negroni/Gorilla Mux seems to be a good combination for me, but Jeremy Saenz is coming out with a new mux that I'm interested in trying when it's released to see how it compares to Gorilla Mux.