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

CPU time to decode? #82

Open
KyleAMathews opened this issue Oct 8, 2024 · 2 comments
Open

CPU time to decode? #82

KyleAMathews opened this issue Oct 8, 2024 · 2 comments

Comments

@KyleAMathews
Copy link

KyleAMathews commented Oct 8, 2024

I'm curious how much time it takes to decode and verify a jwt as that'll impact my costs.

Also if there's any techniques for optimizing that?

@tsndr
Copy link
Owner

tsndr commented Oct 8, 2024

The time for verify() varies depending on the algorithm used, and decode() essentially performs two base64 decoding operations.

I haven't measured the times yet, but it would definitely be interesting to learn more.

@KyleAMathews
Copy link
Author

Ok cool. I'll be doing some prototyping in the nearish future with open telemetry measuring things so I'll have some numbers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants