251005.2 · src: update crypto.getCipherInfo() to use DictionaryTemplate
'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);
}