node/test/parallel/test-benchmark-es.js
Rich Trott f01e9e7f69 test: fix flaky test-benchmark-es
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>
2017-12-08 19:36:58 -08:00

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 });