mirror of
https://github.com/nodejs/node.git
synced 2025-05-10 17:57:53 +00:00

This significantly reduces the benchmark runtime. It removes to many variations that do not provide any benefit and reduces the iterations. PR-URL: https://github.com/nodejs/node/pull/22503 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: John-David Dalton <john.david.dalton@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
19 lines
431 B
JavaScript
19 lines
431 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'],
|
|
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|