{"repo":"skjolber/java-jwt-benchmark","free":true,"listed":false,"github":"https://github.com/skjolber/java-jwt-benchmark","clone":"git clone https://github.com/skjolber/java-jwt-benchmark.git","description":"Project for benchmarking popular Json Web Token (JWT) frameworks for Java using JMH.","language":"Java","stars":12,"topics":["jwt","java","benchmark","jmh","jjwt","java-jwt","okta-oidc","gradle"],"license":null,"category":"auth-billing-email","readme_excerpt":"java-jwt-benchmark Project for benchmarking popular Json Web Token (JWT) frameworks for Java using [JMH]. Supported frameworks: [java-jwt] from [Auth0] [jjwt] from jwtk [Okta JWT Verifier for Java] from Okta [fusionauth-jwt] from [FusionAuth] [Nimbus-JOSE-JWT] from [connect2id] License [Apache 2.0] Obtain The project is based on [Gradle]. Usage Modify the build version to your current snapshot, then run Note: Requires Java 8 to build, there is some classpath issue with Java 11 which I've yet to understand. Disable CPU Boost Temporarily disable boost (untill next reboot) for AMD: echo \"0\" sudo tee /sys/devices/system/cpu/cpufreq/boost The JMH plugin seems to have trouble refreshing the project, so restart the Gradle deamon before running. Benchmarks Parse token (if possible) Verify token Verify token, get claim. General performance observations There is not much headroom for improving the performance of RSA-based signatures; most ( 90%) of the CPU time goes to signature verification. This observation is based on two simple 'baseline' RSA-based JWT verifiers included in this project. They perform about 5% faster than the fastest JWT libraries, but then only does signature verification and no JSON parsing / field validation. So it seems likely this is the upper limit. Latest results Running for OpenJDK 21 build 21.0.6+7 on Fedora Linux 6.12.9-200, AMD Ryzen 9950. Result visualizations: [visualization v1.6.0] Summary: For JWT verification [fusionauth-jwt] and [java-jwt] are tied ","default_branch":null,"files":null,"tree":[],"storefront":"/r/skjolber","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/skjolber/java-jwt-benchmark/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}