This patch introduces a helper crypto.hash() that computes a digest from the input at one shot. This can be 1.2-1.6x faster than the object-based createHash() for smaller inputs (<= 5MB) that are readily available (not streamed) and incur less memory overhead since no intermediate objects will be created. PR-URL: https://github.com/nodejs/node/pull/51044 Refs: https://github.com/nodejs/performance/issues/136 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> |
||
|---|---|---|
| .. | ||
| aes-gcm-throughput.js | ||
| cipher-stream.js | ||
| create-hash.js | ||
| create-keyobject.js | ||
| get-ciphers.js | ||
| hash-stream-creation.js | ||
| hash-stream-throughput.js | ||
| hkdf.js | ||
| keygen.js | ||
| oneshot-hash.js | ||
| oneshot-sign.js | ||
| oneshot-verify.js | ||
| randomBytes.js | ||
| randomInt.js | ||
| randomUUID.js | ||
| rsa-encrypt-decrypt-throughput.js | ||
| rsa-sign-verify-throughput.js | ||
| webcrypto-digest.js | ||