-
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.
- Loading branch information
1 parent
63c1fd5
commit 2270786
Showing
8 changed files
with
1,072 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
*bench.exec |
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,3 @@ | ||
run: | ||
go test -c -o jwt-bench.exec | ||
time ./jwt-bench.exec -test.v -test.benchmem -test.bench ^Benchmark -test.count 5 -test.run ^$ > bench.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,37 @@ | ||
# jwt | ||
|
||
## Who | ||
|
||
``` | ||
github.com/cristalhq/jwt/v4 v4.0.0 | ||
github.com/golang-jwt/jwt v3.2.2+incompatible | ||
github.com/lestrrat-go/jwx v1.2.23 | ||
github.com/pascaldekloe/jwt v1.10.0 | ||
``` | ||
|
||
## Where | ||
|
||
``` | ||
MacBook Pro (15-inch, 2017) | ||
2,8 GHz Quad-Core Intel Core i7 | ||
16 GB 2133 MHz LPDDR3 | ||
``` | ||
|
||
## How | ||
|
||
```shell script | ||
# build & run benchmark | ||
$ make run | ||
|
||
# or in steps | ||
|
||
# build test executable | ||
$ go test -c -o jwt-bench.exec | ||
|
||
# run executable | ||
$ time ./jwt-bench.exec -v -benchmem -bench ^Benchmark -count 5 -run ^$ > bench.txt | ||
``` | ||
|
||
## Well | ||
|
||
See [bench.txt](https://github.com/cristalhq/benchmarks/blob/main/jwt/bench.txt) |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.