koding / kite

Micro-service framework in Go
https://godoc.org/github.com/koding/kite
MIT License
3.26k stars 300 forks source link

kite: benchmark and memory improvements #124

Closed fatih closed 8 years ago

fatih commented 9 years ago

Another improvement: https://github.com/igm/sockjs-go/pull/30

benchmark                           old ns/op     new ns/op     delta
BenchmarkHandler_ParseSessionID     19985         4465          -77.66%

benchmark                           old allocs     new allocs     delta
BenchmarkHandler_ParseSessionID     61             2              -96.72%

benchmark                           old bytes     new bytes     delta
BenchmarkHandler_ParseSessionID     6560          96            -98.54%
rjeczalik commented 8 years ago

Going to rework this in separate PR.