Hacker News new | ask | show | jobs
by ch4s3 4154 days ago
Wow, I knew Gin was supposed to be faster than martini, but seeing that large of a spread was pretty interesting.
1 comments

Not totally sure, but I think Gin is faster because it uses HttpRouter under the covers.
And 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-faste...

and here:

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.