Skip to content

Commit

Permalink
fixup! benchmark: refactor crypto oneshot
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed May 31, 2023
1 parent 3fe9f40 commit 73bcad2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmark/crypto/oneshot-sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
4 changes: 3 additions & 1 deletion benchmark/crypto/oneshot-verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

0 comments on commit 73bcad2

Please sign in to comment.