-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
25 changed files
with
1,281 additions
and
24 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
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
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,14 @@ | ||
# baseline-bench | ||
Benchmark configuration for the minimal JWT verifier. | ||
|
||
* Single JWT issue, | ||
* Single JWK | ||
* Per-key cache | ||
* Efficient header comparison | ||
* Check if dot at correct length | ||
* Compare byte range with the most entropy first | ||
* Efficient signature check | ||
* Precalculated SHA256 header hash | ||
* Per-thread initialized digest | ||
|
||
Most of the CPU time (> 95%) is spent verifying the signature, so two alternative crypto providers are tested. |
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,11 @@ | ||
dependencies { | ||
|
||
// https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk18on | ||
api "org.bouncycastle:bcprov-jdk18on:${bouncyCastleVersion}" | ||
api ("com.brsanthu:migbase64:2.2") | ||
api project(":jmh-utils") | ||
|
||
testImplementation project(":jmh-utils") | ||
} | ||
|
||
|
Oops, something went wrong.