2017-10-06 22:00:46 +02:00
|
|
|
'use strict';
|
|
|
|
|
2017-12-25 07:38:11 +01:00
|
|
|
require('../common');
|
2017-10-06 22:00:46 +02:00
|
|
|
const runBenchmark = require('../common/benchmark');
|
|
|
|
|
2017-12-25 07:38:11 +01:00
|
|
|
const tmpdir = require('../common/tmpdir');
|
|
|
|
tmpdir.refresh();
|
2017-12-24 23:10:20 +01:00
|
|
|
|
2017-10-06 22:00:46 +02:00
|
|
|
runBenchmark('fs', [
|
|
|
|
'n=1',
|
|
|
|
'size=1',
|
2017-12-22 00:04:24 +01:00
|
|
|
'dur=0.1',
|
2017-10-06 22:00:46 +02:00
|
|
|
'len=1024',
|
|
|
|
'concurrent=1',
|
|
|
|
'pathType=relative',
|
|
|
|
'statType=fstat',
|
|
|
|
'statSyncType=fstatSync',
|
|
|
|
'encodingType=buf',
|
2018-11-06 11:37:39 +01:00
|
|
|
'filesize=1024',
|
|
|
|
'dir=.github',
|
|
|
|
'withFileTypes=false'
|
2017-12-25 07:38:11 +01:00
|
|
|
], { NODE_TMPDIR: tmpdir.path, NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|