Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Silly question, but where's the "plain net/http" benchmark? I haven't found a case where I've missed having an http framework.

Would be interesting to see what the baseline is.



Basically there aren’t much reasons besides security considerations to use net/http multiplexer at all.

The baseline was profiled under STATICALL as the default net/http multiplexer does not support dynamic paths http://golang.org/pkg/net/http/#ServeMux. The benchmark is named BenchmarkHttpServeMux_StaticAll you can read the code at https://github.com/julienschmidt/go-http-routing-benchmark/b.... Frankly, net/http it not a very good http router. The results show that julienschmidt/httprouter trie based implementing outperforms net/http by 60x.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: