mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 12:45:25 +00:00

Allow zero iterations for short benchmark in test. PR-URL: https://github.com/nodejs/node/pull/17516 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
20 lines
443 B
JavaScript
20 lines
443 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const runBenchmark = require('../common/benchmark');
|
|
|
|
runBenchmark('es',
|
|
[
|
|
'method=',
|
|
'millions=0.000001',
|
|
'count=1',
|
|
'context=null',
|
|
'rest=0',
|
|
'mode=',
|
|
'n=1',
|
|
'encoding=ascii',
|
|
'size=1e1'
|
|
],
|
|
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|