forked from lestrrat-go/jwx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add benchmark results in README (lestrrat-go#441)
- Loading branch information
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
stdlib: | ||
go test -bench . -benchmem -count 5 -timeout 60m | tee stdlib.txt | ||
go test -bench . -benchmem | tee stdlib.txt | ||
|
||
goccy: | ||
go test -bench . -benchmem -count 5 -timeout 60m -tags jwx_goccy | tee goccy.txt | ||
go test -bench . -benchmem -tags jwx_goccy | tee goccy.txt | ||
|
||
benchstat: | ||
benchstat -sort -delta stdlib.txt goccy.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Comparison Benchmarks | ||
|
||
## Parsing signed JWT | ||
|
||
* github.com/lestrrat-go/jwx | ||
* 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/bench/comparison | ||
cpu: AMD Ryzen 9 3900X 12-Core Processor | ||
BenchmarkJWT/github.com/lestrrat-go/jwx-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 | ||
``` |