Adds benchmarks

This commit is contained in:
Manu Mtz-Almeida 2015-06-01 01:39:08 +02:00
parent a21cc8dd3d
commit ce784498b4

View File

@ -23,7 +23,41 @@ func main() {
} }
``` ```
##Gin v1. released ## Benchmarks
```
BenchmarkAce_Param5 2000000 579 ns/op 160 B/op 1 allocs/op
BenchmarkBear_Param5 1000000 1599 ns/op 469 B/op 5 allocs/op
BenchmarkBeego_Param5 1000000 3472 ns/op 992 B/op 13 allocs/op
BenchmarkBone_Param5 1000000 1558 ns/op 432 B/op 3 allocs/op
BenchmarkDenco_Param5 3000000 554 ns/op 160 B/op 1 allocs/op
BenchmarkGin_Param5 10000000 215 ns/op 0 B/op 0 allocs/op
BenchmarkGocraftWeb_Param5 1000000 2689 ns/op 928 B/op 12 allocs/op
BenchmarkGoji_Param5 1000000 1194 ns/op 336 B/op 2 allocs/op
BenchmarkGoJsonRest_Param5 500000 3765 ns/op 1105 B/op 17 allocs/op
BenchmarkGoRestful_Param5 200000 11263 ns/op 2672 B/op 31 allocs/op
BenchmarkGorillaMux_Param5 300000 6050 ns/op 912 B/op 9 allocs/op
BenchmarkHttpRouter_Param5 5000000 397 ns/op 160 B/op 1 allocs/op
BenchmarkHttpTreeMux_Param5 1000000 1088 ns/op 336 B/op 2 allocs/op
BenchmarkKocha_Param5 1000000 1608 ns/op 440 B/op 10 allocs/op
BenchmarkMacaron_Param5 300000 4506 ns/op 1376 B/op 14 allocs/op
BenchmarkMartini_Param5 100000 15237 ns/op 1280 B/op 12 allocs/op
BenchmarkPat_Param5 300000 4988 ns/op 1008 B/op 42 allocs/op
BenchmarkPossum_Param5 1000000 2012 ns/op 624 B/op 7 allocs/op
BenchmarkR2router_Param5 1000000 1531 ns/op 432 B/op 6 allocs/op
BenchmarkRevel_Param5 200000 7964 ns/op 2024 B/op 35 allocs/op
BenchmarkRivet_Param5 1000000 1895 ns/op 528 B/op 9 allocs/op
BenchmarkTango_Param5 1000000 3093 ns/op 944 B/op 18 allocs/op
BenchmarkTigerTonic_Param5 200000 11992 ns/op 2519 B/op 53 allocs/op
BenchmarkTraffic_Param5 200000 8537 ns/op 2280 B/op 31 allocs/op
BenchmarkVulcan_Param5 1000000 1290 ns/op 98 B/op 3 allocs/op
BenchmarkZeus_Param5 1000000 1537 ns/op 416 B/op 3 allocs/op
```
[https://github.com/gin-gonic/go-http-routing-benchmark/blob/master/round2.md](https://github.com/gin-gonic/go-http-routing-benchmark/blob/master/round2.md)
##Gin v1. stable
- [x] Zero allocation router. - [x] Zero allocation router.
- [x] Still the fastest http router and framework. From routing to writing. - [x] Still the fastest http router and framework. From routing to writing.
- [x] Complete suite of unit tests - [x] Complete suite of unit tests