/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
benchmark/crypto/getcipherinfo.js
16 строк
329 B
James M Snell
src: update crypto.getCipherInfo() to use DictionaryTemplate
05 окт 2025, 17:05
Не верифицирован
05 окт 2025, 17:05
ed94bc4
Код
Авторство
О чём код?
'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); }