summaryrefslogtreecommitdiff
path: root/benchmark/crypto/hash-stream-creation.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/crypto/hash-stream-creation.js')
-rw-r--r--benchmark/crypto/hash-stream-creation.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/crypto/hash-stream-creation.js b/benchmark/crypto/hash-stream-creation.js
index faaa12a9e5..8ffbe148bb 100644
--- a/benchmark/crypto/hash-stream-creation.js
+++ b/benchmark/crypto/hash-stream-creation.js
@@ -16,7 +16,7 @@ const bench = common.createBenchmark(main, {
function main({ api, type, len, out, writes, algo }) {
if (api === 'stream' && /^v0\.[0-8]\./.test(process.version)) {
console.error('Crypto streams not available until v0.10');
- // use the legacy, just so that we can compare them.
+ // Use the legacy, just so that we can compare them.
api = 'legacy';
}
@@ -54,7 +54,7 @@ function legacyWrite(algo, message, encoding, writes, len, outEnc) {
h.update(message, encoding);
var res = h.digest(outEnc);
- // include buffer creation costs for older versions
+ // Include buffer creation costs for older versions
if (outEnc === 'buffer' && typeof res === 'string')
res = Buffer.from(res, 'binary');
}