diff options
author | isaacs <i@izs.me> | 2013-02-19 15:03:41 -0800 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-02-19 17:16:55 -0800 |
commit | 4b80f217cd91a5b29089d94398059b85b1ef8a93 (patch) | |
tree | a69a60dd26abb790023b662ae5fe10cc370058ba /benchmark/fs | |
parent | 2ed56e52354d871622e6b9ca5bf44fa7409b511b (diff) | |
download | nodejs-4b80f217cd91a5b29089d94398059b85b1ef8a93.tar.gz nodejs-4b80f217cd91a5b29089d94398059b85b1ef8a93.tar.bz2 nodejs-4b80f217cd91a5b29089d94398059b85b1ef8a93.zip |
bench: Simplify duration arguments to benchmarks
For throughput benchmarks, run with just 5s durations rather than 1s and 3s.
For startup benchmark, run with just a single 1s duration, since it's very
consistent anyway.
Diffstat (limited to 'benchmark/fs')
-rw-r--r-- | benchmark/fs/readfile.js | 2 | ||||
-rw-r--r-- | benchmark/fs/write-stream-throughput.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/fs/readfile.js b/benchmark/fs/readfile.js index 38548ef64..ac3241901 100644 --- a/benchmark/fs/readfile.js +++ b/benchmark/fs/readfile.js @@ -8,7 +8,7 @@ var filename = path.resolve(__dirname, '.removeme-benchmark-garbage'); var fs = require('fs'); var bench = common.createBenchmark(main, { - dur: [1, 3], + dur: [5], len: [1024, 16 * 1024 * 1024], concurrent: [1, 10] }); diff --git a/benchmark/fs/write-stream-throughput.js b/benchmark/fs/write-stream-throughput.js index d37299ab3..57ce4c4fe 100644 --- a/benchmark/fs/write-stream-throughput.js +++ b/benchmark/fs/write-stream-throughput.js @@ -6,7 +6,7 @@ var filename = path.resolve(__dirname, '.removeme-benchmark-garbage'); var fs = require('fs'); var bench = common.createBenchmark(main, { - dur: [1, 3], + dur: [5], type: ['buf', 'asc', 'utf'], size: [2, 1024, 65535, 1024 * 1024] }); |