Benchmark Comparisons - adam-hanna/sessions GitHub Wiki

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.

github.com/adam-hanna/sessions

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

github.com/gorilla/sessions

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