Skip to content

Instantly share code, notes, and snippets.

@axdg
Created September 21, 2015 06:30
Show Gist options
  • Save axdg/7469650d0d7d44731e43 to your computer and use it in GitHub Desktop.
Save axdg/7469650d0d7d44731e43 to your computer and use it in GitHub Desktop.
go-http-routing-benchmark run
PASS
BenchmarkEcho_Param 10000000 129 ns/op 0 B/op 0 allocs/op
BenchmarkGin_Param 20000000 114 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_Param5 10000000 244 ns/op 0 B/op 0 allocs/op
BenchmarkGin_Param5 10000000 223 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_Param20 2000000 640 ns/op 0 B/op 0 allocs/op
BenchmarkGin_Param20 3000000 519 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_ParamWrite 5000000 265 ns/op 16 B/op 1 allocs/op
BenchmarkGin_ParamWrite 5000000 268 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_GithubStatic 10000000 172 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GithubStatic 10000000 150 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_GithubParam 5000000 283 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GithubParam 5000000 275 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_GithubAll 20000 66422 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GithubAll 30000 59794 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_GPlusStatic 10000000 137 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GPlusStatic 10000000 119 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_GPlusParam 10000000 183 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GPlusParam 10000000 162 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_GPlus2Params 10000000 231 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GPlus2Params 10000000 212 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_GPlusAll 500000 3054 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GPlusAll 500000 2647 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_ParseStatic 20000000 129 ns/op 0 B/op 0 allocs/op
BenchmarkGin_ParseStatic 10000000 123 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_ParseParam 10000000 137 ns/op 0 B/op 0 allocs/op
BenchmarkGin_ParseParam 20000000 130 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_Parse2Params 10000000 186 ns/op 0 B/op 0 allocs/op
BenchmarkGin_Parse2Params 10000000 153 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_ParseAll 300000 5659 ns/op 0 B/op 0 allocs/op
BenchmarkGin_ParseAll 300000 5224 ns/op 0 B/op 0 allocs/op
BenchmarkEcho_StaticAll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment