mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
bdb1083ef5
This adds a couple of benchmarks to check different options and code paths. PR-URL: https://github.com/nodejs/node/pull/30767 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
21 lines
487 B
JavaScript
21 lines
487 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const runBenchmark = require('../common/benchmark');
|
|
|
|
runBenchmark('util',
|
|
['argument=false',
|
|
'input=',
|
|
'method=Array',
|
|
'n=1',
|
|
'option=none',
|
|
'pos=start',
|
|
'size=1',
|
|
'type=',
|
|
'len=1',
|
|
'version=native',
|
|
'isProxy=1',
|
|
'showProxy=1'],
|
|
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|