diff --git a/benchmark/crypto/oneshot-sign.js b/benchmark/crypto/oneshot-sign.js index e592de92428db8..19fc75f5055aac 100644 --- a/benchmark/crypto/oneshot-sign.js +++ b/benchmark/crypto/oneshot-sign.js @@ -120,7 +120,7 @@ function main({ n, mode, keyFormat, keyType }) { case 'sync': measureSync(n, digest, privateKey, keys); break; - case 'async-serial': + case 'async': measureAsync(n, digest, privateKey, keys); break; case 'async-parallel': diff --git a/benchmark/crypto/oneshot-verify.js b/benchmark/crypto/oneshot-verify.js index 6eda15f35b7990..a411e4759291db 100644 --- a/benchmark/crypto/oneshot-verify.js +++ b/benchmark/crypto/oneshot-verify.js @@ -142,11 +142,13 @@ function main({ n, mode, keyFormat, keyType }) { case 'sync': measureSync(n, digest, signature, publicKey, keys); break; - case 'async-serial': + case 'async': measureAsync(n, digest, signature, publicKey, keys); break; case 'async-parallel': measureAsyncParallel(n, digest, signature, publicKey, keys); break; + default: + throw new Error('not implemented'); } }