summaryrefslogtreecommitdiff
path: root/benchmark/crypto/cipher-stream.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/crypto/cipher-stream.js')
-rw-r--r--benchmark/crypto/cipher-stream.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/benchmark/crypto/cipher-stream.js b/benchmark/crypto/cipher-stream.js
index 64f6ff7b72..9f986dfb36 100644
--- a/benchmark/crypto/cipher-stream.js
+++ b/benchmark/crypto/cipher-stream.js
@@ -10,6 +10,9 @@ const bench = common.createBenchmark(main, {
});
function main({ api, cipher, type, len, writes }) {
+ // Default cipher for tests.
+ if (cipher === '')
+ cipher = 'AES192';
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.