0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 23:43:09 +01:00
nodejs/benchmark/fs
Rich Trott d610fad390
benchmark: make temp file path configurable
In three fs benchmarks, a temp file is created in the source tree. For
tests, allow the location to be configurable so it gets written to the
test temp directory instead.

Additionally, shave about a second off the test running time by setting
`dur` to `0.1` instead of `1`.

PR-URL: https://github.com/nodejs/node/pull/17811
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
2017-12-24 09:21:37 -05:00
..
bench-readdir.js
bench-readdirSync.js
bench-realpath.js test: added fs benchmark test 2017-10-10 22:59:09 -07:00
bench-realpathSync.js test: added fs benchmark test 2017-10-10 22:59:09 -07:00
bench-stat.js test: added fs benchmark test 2017-10-10 22:59:09 -07:00
bench-statSync.js test: added fs benchmark test 2017-10-10 22:59:09 -07:00
read-stream-throughput.js benchmark: make temp file path configurable 2017-12-24 09:21:37 -05:00
readfile.js benchmark: make temp file path configurable 2017-12-24 09:21:37 -05:00
readFileSync.js benchmark: var to const 2017-09-19 21:14:38 -03:00
write-stream-throughput.js benchmark: make temp file path configurable 2017-12-24 09:21:37 -05:00