-
Notifications
You must be signed in to change notification settings - Fork 11
Benchmark Comparisons
Adam Hanna edited this page May 5, 2017
·
3 revisions
A repo where I compare benchmarks to other session services can be found, here. The results have been copied, below. Nanoseconds per operation for this package were more than half of the gorilla sessions package.
As stated in the package, my benchmark results are as follows:
$ (cd benchmark && go test -bench=.)
setting up benchmark tests
BenchmarkBaseServer-2 20000 72479 ns/op
BenchmarkValidSession-2 10000 151650 ns/op
PASS
shutting down benchmark tests
ok github.com/adam-hanna/sessions/benchmark 3.727s
The gorilla sessions server was setup as shown in main.go. The server was started before performing the benchmarks. The benchmarks were run on the same machine, on the same day as the benchmarks given above (FWTW).
$ (cd benchmark && go test -bench=.)
BenchmarkValidSession-2 5000 310136 ns/op
PASS
ok github.com/adam-hanna/sessions-comparison/gorilla-sessions/benchmark 1.593s