Closed naijun0403 closed 1 month ago
These are currently from the browserify polyfills which means they aren't implemented in native code and are much slower as a result. We need to make them use BoringSSL instead (as we have done for other parts of node:crypto
)
Okay, I'll always be waiting for news
@naijun0403 @Jarred-Sumner Any updates?
up
Up
What version of Bun is running?
1.0.3+25e69c71e70ac8a0a88f9cf15b4057bd7b2a633a
What platform is your computer?
Darwin 22.6.0 x86_64 i386
What steps can reproduce the bug?
You just need to run this code with node and bun.
What is the expected behavior?
At least the speed should be similar to node.
What do you see instead?
Bun is much slower than node in the RSA encryption and decryption part.
Additional information
Obviously, I also evaluated the file I/O process when benchmarking. however. This does not affect performance. Bun is slightly faster than node.
I used RSA 2048.