What's Changed
- Update to go 1.18 by @simongottschlag in #158
- Bump actions/setup-go from 2 to 3 by @dependabot in #157
The benchmarks show an improvement of an average of 370% between go 1.17 and go 1.18 if my math isn't too off:
name old time/op new time/op delta
pkg:github.com/xenitab/go-oidc-middleware/oidcechojwt goos:linux goarch:amd64
Suite/OidcEchoJwt_handler/10_clients-2 6.03ms ± 0% 1.64ms ± 0% ~ (p=1.000 n=1+1)
Suite/OidcEchoJwt_requirements/10_clients-2 6.13ms ± 0% 1.76ms ± 0% ~ (p=1.000 n=1+1)
Suite/OidcEchoJwt_http/10_clients-2 6.46ms ± 0% 1.77ms ± 0% ~ (p=1.000 n=1+1)
pkg:github.com/xenitab/go-oidc-middleware/oidcfiber goos:linux goarch:amd64
Suite/OidcFiber_handler/10_clients-2 6.56ms ± 0% 1.88ms ± 0% ~ (p=1.000 n=1+1)
Suite/OidcFiber_requirements/10_clients-2 6.50ms ± 0% 1.71ms ± 0% ~ (p=1.000 n=1+1)
Suite/OidcFiber_http/10_clients-2 6.89ms ± 0% 1.75ms ± 0% ~ (p=1.000 n=1+1)
pkg:github.com/xenitab/go-oidc-middleware/oidcgin goos:linux goarch:amd64
Suite/OidcGin_handler/10_clients-2 6.72ms ± 0% 1.94ms ± 0% ~ (p=1.000 n=1+1)
Suite/OidcGin_requirements/10_clients-2 7.25ms ± 0% 1.66ms ± 0% ~ (p=1.000 n=1+1)
Suite/OidcGin_http/10_clients-2 7.44ms ± 0% 1.80ms ± 0% ~ (p=1.000 n=1+1)
pkg:github.com/xenitab/go-oidc-middleware/oidchttp goos:linux goarch:amd64
Suite/OidcHttp_handler/10_clients-2 5.94ms ± 0% 1.65ms ± 0% ~ (p=1.000 n=1+1)
Suite/OidcHttp_requirements/10_clients-2 5.95ms ± 0% 1.70ms ± 0% ~ (p=1.000 n=1+1)
Suite/OidcHttp_http/10_clients-2 6.32ms ± 0% 1.77ms ± 0% ~ (p=1.000 n=1+1)
See the PR (#158) for the logs of the run I did comparing the versions.
Full Changelog: v0.0.27...v0.0.28