summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-10-14 07:05:12 -0700
committerRich Trott <rtrott@gmail.com>2019-10-14 07:53:51 -0700
commit7991b57cfdba96ddcd6553c8233cd6392e16a42a (patch)
treecc78ff28d2439e2a2a42781ed858e42fb856ace3 /test
parentc62503994a5db6cfca0597d36b05b39eecc6da27 (diff)
downloadandroid-node-v8-7991b57cfdba96ddcd6553c8233cd6392e16a42a.tar.gz
android-node-v8-7991b57cfdba96ddcd6553c8233cd6392e16a42a.tar.bz2
android-node-v8-7991b57cfdba96ddcd6553c8233cd6392e16a42a.zip
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>
Diffstat (limited to 'test')
-rw-r--r--test/benchmark/test-benchmark-fs.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/test/benchmark/test-benchmark-fs.js b/test/benchmark/test-benchmark-fs.js
index efb2c453bd..3168e6f0a0 100644
--- a/test/benchmark/test-benchmark-fs.js
+++ b/test/benchmark/test-benchmark-fs.js
@@ -7,16 +7,17 @@ const tmpdir = require('../common/tmpdir');
tmpdir.refresh();
runBenchmark('fs', [
- 'n=1',
- 'size=1',
+ 'concurrent=1',
+ 'dir=.github',
'dur=0.1',
+ 'encodingType=buf',
+ 'filesize=1024',
'len=1024',
- 'concurrent=1',
+ 'mode=callback',
+ 'n=1',
'pathType=relative',
- 'statType=fstat',
+ 'size=1',
'statSyncType=fstatSync',
- 'encodingType=buf',
- 'filesize=1024',
- 'dir=.github',
- 'withFileTypes=false'
+ 'statType=fstat',
+ 'withFileTypes=false',
], { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });