nodejs-mozilla/test/benchmark/test-benchmark-crypto.js

14 lines
309 B
JavaScript

'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
if (common.hasFipsCrypto)
common.skip('some benchmarks are FIPS-incompatible');
const runBenchmark = require('../common/benchmark');
runBenchmark('crypto', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });