diff options
author | Rich Trott <rtrott@gmail.com> | 2017-11-05 02:12:23 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-11-17 21:08:17 -0800 |
commit | cfda245706249255b517c2c76252c50377f7c616 (patch) | |
tree | 9f18a3f5eda4dea5f1e90f1434bfd445479d0ef9 /benchmark/fs/read-stream-throughput.js | |
parent | 780c2d3917ccffd9d71d484b089f74af18355314 (diff) | |
download | android-node-v8-cfda245706249255b517c2c76252c50377f7c616.tar.gz android-node-v8-cfda245706249255b517c2c76252c50377f7c616.tar.bz2 android-node-v8-cfda245706249255b517c2c76252c50377f7c616.zip |
benchmark: use unique filenames in fs benchmarks
Use a unique file name for each benchmark. Running benchmarks
simultaneously may be a bit of an unusual use case, but there are use
cases, such as stress testing `test/parallel/test-benchmark-fs.js`.
PR-URL: https://github.com/nodejs/node/pull/16776
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark/fs/read-stream-throughput.js')
-rw-r--r-- | benchmark/fs/read-stream-throughput.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmark/fs/read-stream-throughput.js b/benchmark/fs/read-stream-throughput.js index 4412d41f98..85aa3c929f 100644 --- a/benchmark/fs/read-stream-throughput.js +++ b/benchmark/fs/read-stream-throughput.js @@ -3,7 +3,8 @@ const path = require('path'); const common = require('../common.js'); -const filename = path.resolve(__dirname, '.removeme-benchmark-garbage'); +const filename = path.resolve(__dirname, + `.removeme-benchmark-garbage-${process.pid}`); const fs = require('fs'); const assert = require('assert'); |