From 4b80f217cd91a5b29089d94398059b85b1ef8a93 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 19 Feb 2013 15:03:41 -0800 Subject: 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. --- benchmark/fs/readfile.js | 2 +- benchmark/fs/write-stream-throughput.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'benchmark/fs') 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] }); -- cgit v1.2.3