Re:Golang web frameworks benchmark
by ch4s3 on Thursday February 05, 2015 @02:20PM
(#9005265)
Wow, I knew Gin was supposed to be faster than martini, but seeing that large of a spread was pretty interesting.
[ Parent
| on HN ]
Not totally sure, but I think Gin is faster because it uses HttpRouter under the covers.
Re:Golang web frameworks benchmark
by dougbarrett on Thursday February 05, 2015 @04:26PM
(#9006234)
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.
Indeed it does. http://gin-gonic.github.io/gin/