File: README.md

package info (click to toggle)
golang-github-lestrrat-go-jwx 2.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,872 kB
  • sloc: sh: 222; makefile: 86; perl: 62
file content (16 lines) | stat: -rw-r--r-- 560 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Comparison Benchmarks

## Parsing signed JWT

* github.com/lestrrat-go/jwx/v2
* github.com/golang-jwt/jwt

```
go test -bench . -benchmem -tags jwx_goccy | tee goccy.txt
goos: linux
goarch: amd64
pkg: github.com/lestrrat-go/jwx/v2/bench/comparison
cpu: AMD Ryzen 9 3900X 12-Core Processor
BenchmarkJWT/github.com/lestrrat-go/jwx/v2-24                   100          10606620 ns/op         6094200 B/op      39411 allocs/op
BenchmarkJWT/github.com/golang-jwt/jwt-24                    100          10577532 ns/op         6080878 B/op      39366 allocs/op
```