blob: f24edf675f92f021de2af4a07f8c5c22c29f7fd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
'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',
[
'algo=sha256',
'api=stream',
'cipher=',
'keylen=1024',
'len=1',
'n=1',
'out=buffer',
'type=buf',
'v=crypto',
'writes=1',
],
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|