2017-04-12 04:09:05 +08:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const common = require('../common');
|
|
|
|
|
2017-07-01 07:29:09 +08:00
|
|
|
if (!common.hasCrypto)
|
2017-04-12 04:09:05 +08:00
|
|
|
common.skip('missing crypto');
|
|
|
|
|
2017-07-01 07:29:09 +08:00
|
|
|
if (common.hasFipsCrypto)
|
2017-04-12 04:09:05 +08:00
|
|
|
common.skip('some benchmarks are FIPS-incompatible');
|
|
|
|
|
2017-08-24 15:15:55 +08:00
|
|
|
const runBenchmark = require('../common/benchmark');
|
|
|
|
|
2020-02-13 02:34:00 +08:00
|
|
|
runBenchmark('crypto', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|