test: allow short benchmarks for tests

Enable short benchmarks for process and path benchmark tests. These have
been observed to fail in CI due to returning with zero operations
performed in the allotted time. We have a special environment variable
for other benchmark tests that can be set to make that allowable in
benchmarks. Set it for path and process.

PR-URL: https://github.com/nodejs/node/pull/16097
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
This commit is contained in:
Rich Trott 2017-10-08 21:23:49 -07:00
parent b3ce408098
commit 067d1f16de
2 changed files with 2 additions and 2 deletions

View File

@ -11,4 +11,4 @@ runBenchmark('path',
'pathext=',
'paths=',
'props='
]);
], { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });

View File

@ -9,4 +9,4 @@ runBenchmark('process',
'millions=0.000001',
'n=1',
'type=raw'
]);
], { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });