diff options
Diffstat (limited to 'benchmark/crypto')
-rw-r--r-- | benchmark/crypto/cipher-stream.js | 4 | ||||
-rw-r--r-- | benchmark/crypto/rsa-encrypt-decrypt-throughput.js | 2 | ||||
-rw-r--r-- | benchmark/crypto/rsa-sign-verify-throughput.js | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/benchmark/crypto/cipher-stream.js b/benchmark/crypto/cipher-stream.js index c9989d32dc..584039a1e5 100644 --- a/benchmark/crypto/cipher-stream.js +++ b/benchmark/crypto/cipher-stream.js @@ -66,11 +66,11 @@ function main({ api, cipher, type, len, writes }) { function streamWrite(alice, bob, message, encoding, writes) { var written = 0; - bob.on('data', function(c) { + bob.on('data', (c) => { written += c.length; }); - bob.on('end', function() { + bob.on('end', () => { // Gbits const bits = written * 8; const gbits = bits / (1024 * 1024 * 1024); diff --git a/benchmark/crypto/rsa-encrypt-decrypt-throughput.js b/benchmark/crypto/rsa-encrypt-decrypt-throughput.js index 40b69c31f9..1295ac8506 100644 --- a/benchmark/crypto/rsa-encrypt-decrypt-throughput.js +++ b/benchmark/crypto/rsa-encrypt-decrypt-throughput.js @@ -9,7 +9,7 @@ const keylen_list = ['1024', '2048', '4096']; const RSA_PublicPem = {}; const RSA_PrivatePem = {}; -keylen_list.forEach(function(key) { +keylen_list.forEach((key) => { RSA_PublicPem[key] = fs.readFileSync(`${fixtures_keydir}/rsa_public_${key}.pem`); RSA_PrivatePem[key] = diff --git a/benchmark/crypto/rsa-sign-verify-throughput.js b/benchmark/crypto/rsa-sign-verify-throughput.js index 3a0373b57d..4ea39d1eb6 100644 --- a/benchmark/crypto/rsa-sign-verify-throughput.js +++ b/benchmark/crypto/rsa-sign-verify-throughput.js @@ -9,7 +9,7 @@ const keylen_list = ['1024', '2048']; const RSA_PublicPem = {}; const RSA_PrivatePem = {}; -keylen_list.forEach(function(key) { +keylen_list.forEach((key) => { RSA_PublicPem[key] = fs.readFileSync(`${fixtures_keydir}/rsa_public_${key}.pem`); RSA_PrivatePem[key] = |