node/benchmark/crypto
Rich Trott ec72cb4019
benchmark: remove unreachable code from crypto/hash-stream-creation
`hash.digest('buffer')` has returned a Buffer and not a string since at
least Node.js 0.10.6. The benchmark, as it is written, will not work on
any version of Node.js prior to 16.x (due to `Object.hasOwn()`) and
certainly won't run on versions earlier than 0.10.6 due to const/let and
probably other things. Remove impossible-to-reach code intended to
accommodate Node.js earlier than 0.10.6.

PR-URL: https://github.com/nodejs/node/pull/41535
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2022-02-25 22:33:56 -05:00
..
aes-gcm-throughput.js
cipher-stream.js
get-ciphers.js
hash-stream-creation.js benchmark: remove unreachable code from crypto/hash-stream-creation 2022-02-25 22:33:56 -05:00
hash-stream-throughput.js
hkdf.js
keygen.js benchmark: increase crypto DSA keygen params 2021-11-04 11:23:13 +01:00
oneshot-sign-verify.js crypto: reconcile oneshot sign/verify sync and async implementations 2021-04-08 10:08:26 +02:00
randomBytes.js
randomInt.js crypto: add buffering to randomInt 2021-04-03 15:37:53 +02:00
randomUUID.js
rsa-encrypt-decrypt-throughput.js
rsa-sign-verify-throughput.js
webcrypto-digest.js