0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00
nodejs/benchmark/fs
João Reis 0376b5b7ba benchmark: use test/common/tmpdir consistently
Many benchmarks use test/common/tmpdir. This changes 3 benchmarks that
use NODE_TMPDIR to also use test/common/tmpdir.

This is necessary in preparation for the next commit that changes tmpdir
to delete tmpdir.path when the Node.js process exits. Thus, if multiple
benchmarks are run sequentially, the ones that use tmpdir will remove
the directory and the ones changed here would fail because it does not
exist. This happens when running test/benchmark.

Note: to explicitly select a directory for tmpdir, use NODE_TEST_DIR.

PR-URL: https://github.com/nodejs/node/pull/28858
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2019-08-10 19:21:35 -07:00
..
bench-mkdirp.js
bench-readdir.js
bench-readdirSync.js
bench-realpath.js
bench-realpathSync.js
bench-stat-promise.js
bench-stat.js
bench-statSync.js
read-stream-throughput.js benchmark: use test/common/tmpdir consistently 2019-08-10 19:21:35 -07:00
readfile-partitioned.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
readfile.js benchmark: use test/common/tmpdir consistently 2019-08-10 19:21:35 -07:00
readFileSync.js
write-stream-throughput.js benchmark: use test/common/tmpdir consistently 2019-08-10 19:21:35 -07:00