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

perf: use node crypto hash when available #116

Merged
merged 2 commits into from
Feb 20, 2025
Merged

perf: use node crypto hash when available #116

merged 2 commits into from
Feb 20, 2025

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Feb 20, 2025

Use faster one-shot hash() from node:crypto when available (added in Node.js v21.7.0, v20.12.0)

Benchmark speedup from (rps) 717,953 => 1,021,298 on my PC

Thanks for great suggestion from @aquapi in e18e discord group. benchmarks from here

@pi0 pi0 marked this pull request as ready for review February 20, 2025 16:47
@pi0 pi0 merged commit fbca1ca into main Feb 20, 2025
@pi0 pi0 deleted the perf/node-crypto-hash branch February 20, 2025 16:49
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

Successfully merging this pull request may close these issues.

None yet

1 participant