test: fix fs benchmark test

Add missing option "mode". Alphabetize options for easier maintenance.

PR-URL: https://github.com/nodejs/node/pull/29967
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
This commit is contained in:
Rich Trott authored and Michaël Zasso committed 2019-11-10 14:50:10 +01:00
1 parent 62bc80c906
commit aec8e77ae1
1 file changed
+10 -9
+10 -9
View File
@@ -7,16 +7,17 @@ const tmpdir = require('../common/tmpdir');
tmpdir.refresh();
runBenchmark('fs', [
'n=1',
'size=1',
'dur=0.1',
'len=1024',
'concurrent=1',
'pathType=relative',
'statType=fstat',
'statSyncType=fstatSync',
'dir=.github',
'dur=0.1',
'encodingType=buf',
'filesize=1024',
'dir=.github',
'withFileTypes=false'
'len=1024',
'mode=callback',
'n=1',
'pathType=relative',
'size=1',
'statSyncType=fstatSync',
'statType=fstat',
'withFileTypes=false',
], { NODE_TMPDIR: tmpdir.path, NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });