mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
Also, have it use a null prototype PR-URL: https://github.com/nodejs/node/pull/60036 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
17 lines
329 B
JavaScript
17 lines
329 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common.js');
|
|
const { getCiphers, getCipherInfo } = require('node:crypto');
|
|
const bench = common.createBenchmark(main, {
|
|
cipher: getCiphers(),
|
|
n: 50,
|
|
});
|
|
|
|
function main({ n, cipher }) {
|
|
bench.start();
|
|
for (let i = 0; i < n; i++) {
|
|
getCipherInfo(cipher);
|
|
}
|
|
bench.end(n);
|
|
}
|