Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix benchmarks with regards to jsonwebtoken performance #535

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Gobd
Copy link

@Gobd Gobd commented Jan 12, 2025

Closes #536

The benchmark results in the readme will also need updating but not sure if you wanted me to do that or run them yourselves. The results are exactly like the linked issue suggests, 50x better performance after this change.

I also added HS256 to the benchmarks because why not, and also that's what I use.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jan 12, 2025
benchmarks/sign.mjs Outdated Show resolved Hide resolved
benchmarks/verify.mjs Outdated Show resolved Hide resolved
@ilteoood
Copy link
Contributor

I think you could also update the benchmarks, so we could also close #507

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jan 12, 2025
@Gobd
Copy link
Author

Gobd commented Jan 12, 2025

I had to regenerated the PS512 token to get those verification benchmarks to work again. These were run on my MacBook Pro with an M2 Pro and 16GB of RAM.

@Gobd Gobd requested a review from ilteoood January 13, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Benchmark results need updating
2 participants