Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
agrison/golang-mux-benchmark
[master] ~/go/src/github.com/agrison/golang-mux-benchmark$ go test -bench=. 2>/dev/null
PASS
BenchmarkGocraftWeb_Simple 2000000 926 ns/op
BenchmarkGocraftWeb_Route15 1000000 2203 ns/op
BenchmarkGocraftWeb_Route75 1000000 2204 ns/op
BenchmarkGocraftWeb_Route150 1000000 2232 ns/op
BenchmarkGocraftWeb_Route300 1000000 2255 ns/op
BenchmarkGocraftWeb_Route3000 1000000 2481 ns/op
BenchmarkGocraftWeb_Middleware 1000000 1539 ns/op
BenchmarkGocraftWeb_Composite 500000 3518 ns/op
BenchmarkGorillaMux_Simple 500000 2977 ns/op
BenchmarkGorillaMux_Route15 200000 14007 ns/op
BenchmarkGorillaMux_Route75 100000 21894 ns/op
BenchmarkGorillaMux_Route150 50000 32069 ns/op
BenchmarkGorillaMux_Route300 50000 53735 ns/op
BenchmarkGorillaMux_Route3000 5000 465750 ns/op
BenchmarkMartini_Simple 500000 5385 ns/op
BenchmarkMartini_Route15 200000 10771 ns/op
BenchmarkMartini_Route75 200000 13887 ns/op
BenchmarkMartini_Route150 100000 17182 ns/op
BenchmarkMartini_Route300 100000 26063 ns/op
BenchmarkMartini_Route3000 10000 162896 ns/op
BenchmarkMartini_Middleware 200000 12323 ns/op
BenchmarkMartini_Composite 100000 28119 ns/op
BenchmarkRcrowleyTigerTonic_Simple 10000000 299 ns/op
BenchmarkRcrowleyTigerTonic_Route15 200000 22541 ns/op
BenchmarkRcrowleyTigerTonic_Route75 500000 11139 ns/op
BenchmarkRcrowleyTigerTonic_Route150 500000 8268 ns/op
BenchmarkRcrowleyTigerTonic_Route300 500000 6000 ns/op
BenchmarkRcrowleyTigerTonic_Route3000 500000 3719 ns/op
BenchmarkPiluTraffic_Simple 500000 2947 ns/op
BenchmarkPiluTraffic_Route15 200000 9501 ns/op
BenchmarkPiluTraffic_Route75 100000 17856 ns/op
BenchmarkPiluTraffic_Route150 100000 26285 ns/op
BenchmarkPiluTraffic_Route300 50000 45298 ns/op
BenchmarkPiluTraffic_Route3000 10000 503349 ns/op
BenchmarkPiluTraffic_Middleware 500000 3190 ns/op
BenchmarkPiluTraffic_Composite 100000 22675 ns/op
BenchmarkGoJsonRest_Simple 500000 5756 ns/op
BenchmarkGoJsonRest_Route15 200000 7455 ns/op
BenchmarkGoJsonRest_Route75 200000 7602 ns/op
BenchmarkGoJsonRest_Route150 200000 7695 ns/op
BenchmarkGoJsonRest_Route300 200000 8061 ns/op
BenchmarkGoJsonRest_Route3000 200000 8931 ns/op
BenchmarkGoJsonRest_Middleware 500000 5992 ns/op
BenchmarkGoJsonRest_Composite 200000 8136 ns/op
BenchmarkGoji_Simple 5000000 365 ns/op
BenchmarkGoji_Route15 2000000 946 ns/op
BenchmarkGoji_Route75 1000000 1002 ns/op
BenchmarkGoji_Route150 1000000 1020 ns/op
BenchmarkGoji_Route300 1000000 1041 ns/op
BenchmarkGoji_Route3000 1000000 1153 ns/op
BenchmarkGoji_Middleware 5000000 518 ns/op
BenchmarkGoji_Composite 1000000 1697 ns/op
ok github.com/agrison/golang-mux-benchmark 128.004s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.