Skip to content

Instantly share code, notes, and snippets.

@wjessop
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wjessop/b6a0e4eacaca268d9163 to your computer and use it in GitHub Desktop.
Save wjessop/b6a0e4eacaca268d9163 to your computer and use it in GitHub Desktop.
bone benchmarks with more complex route
One route: /some/more/comlplex/route
Requesting: /
BenchmarkBoneMux 3000000 466 ns/op
BenchmarkZeusMux 5000000 369 ns/op
BenchmarkHttpRouterMux 5000000 341 ns/op
BenchmarkNetHttpMux 2000000 616 ns/op
BenchmarkGorillaMux 2000000 625 ns/op
BenchmarkGorillaPatMux 2000000 776 ns/op
One route: /some/more/comlplex/route
Requesting: /some/more/comlplex/route
BenchmarkBoneMux 20000000 79.9 ns/op
BenchmarkZeusMux 10000000 117 ns/op
BenchmarkHttpRouterMux 20000000 81.9 ns/op
BenchmarkNetHttpMux 3000000 450 ns/op
BenchmarkGorillaMux 1000000 1626 ns/op
BenchmarkGorillaPatMux 300000 3776 ns/op
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment