Skip to content

Instantly share code, notes, and snippets.

@axdg
Created September 19, 2015 13:22
Show Gist options
  • Save axdg/10e023a328a55451e928 to your computer and use it in GitHub Desktop.
Save axdg/10e023a328a55451e928 to your computer and use it in GitHub Desktop.
go-http-routing-benchmark run
BenchmarkEcho_Param 10000000 123 ns/op 0 B/op 0 allocs/op
BenchmarkGin_Param 10000000 138 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_Param5 5000000 240 ns/op 0 B/op 0 allocs/op
BenchmarkGin_Param5 5000000 246 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_Param20 2000000 738 ns/op 0 B/op 0 allocs/op
BenchmarkGin_Param20 3000000 579 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_ParamWrite 10000000 230 ns/op 16 B/op 1 allocs/op
BenchmarkGin_ParamWrite 5000000 264 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_GithubStatic 10000000 133 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GithubStatic 10000000 144 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_GithubParam 10000000 234 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GithubParam 10000000 232 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_GithubAll 10000 111189 ns/op 15314 B/op 165 allocs/op
BenchmarkGin_GithubAll 30000 50434 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_GPlusStatic 20000000 127 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GPlusStatic 10000000 132 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_GPlusParam 10000000 183 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GPlusParam 10000000 167 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_GPlus2Params 10000000 224 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GPlus2Params 10000000 215 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_GPlusAll 500000 3068 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GPlusAll 500000 2559 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_ParseStatic 20000000 113 ns/op 0 B/op 0 allocs/op
BenchmarkGin_ParseStatic 20000000 129 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_ParseParam 10000000 128 ns/op 0 B/op 0 allocs/op
BenchmarkGin_ParseParam 10000000 133 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_Parse2Params 10000000 161 ns/op 0 B/op 0 allocs/op
BenchmarkGin_Parse2Params 10000000 180 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_ParseAll 300000 5729 ns/op 0 B/op 0 allocs/op
BenchmarkGin_ParseAll 300000 5298 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_StaticAll 30000 41995 ns/op 0 B/op 0 allocs/op
BenchmarkGin_StaticAll 50000 37736 ns/op 0 B/op 0 allocs/op
ok github.com/axdg/go-http-routing-benchmark 60.969s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment