From 4b80f217cd91a5b29089d94398059b85b1ef8a93 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 19 Feb 2013 15:03:41 -0800 Subject: [PATCH] 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 +- benchmark/misc/startup.js | 2 +- benchmark/net/net-c2s.js | 2 +- benchmark/net/net-pipe.js | 2 +- benchmark/net/net-s2c.js | 2 +- benchmark/net/tcp-raw-c2s.js | 2 +- benchmark/net/tcp-raw-pipe.js | 2 +- benchmark/net/tcp-raw-s2c.js | 2 +- benchmark/tls/throughput.js | 2 +- benchmark/tls/tls-connect.js | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/benchmark/fs/readfile.js b/benchmark/fs/readfile.js index 38548ef647..ac3241901b 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 d37299ab38..57ce4c4fec 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] }); diff --git a/benchmark/misc/startup.js b/benchmark/misc/startup.js index 25b3f56fef..aa5b4420f6 100644 --- a/benchmark/misc/startup.js +++ b/benchmark/misc/startup.js @@ -7,7 +7,7 @@ var i = 0; var start; var bench = common.createBenchmark(startNode, { - dur: [1, 3] + dur: [1] }); function startNode(conf) { diff --git a/benchmark/net/net-c2s.js b/benchmark/net/net-c2s.js index 0467643f3a..49de7c77c9 100644 --- a/benchmark/net/net-c2s.js +++ b/benchmark/net/net-c2s.js @@ -6,7 +6,7 @@ var PORT = common.PORT; var bench = common.createBenchmark(main, { len: [102400, 1024 * 1024 * 16], type: ['utf', 'asc', 'buf'], - dur: [1, 3], + dur: [5], }); var dur; diff --git a/benchmark/net/net-pipe.js b/benchmark/net/net-pipe.js index d3908e8439..2a5ed8e483 100644 --- a/benchmark/net/net-pipe.js +++ b/benchmark/net/net-pipe.js @@ -6,7 +6,7 @@ var PORT = common.PORT; var bench = common.createBenchmark(main, { len: [102400, 1024 * 1024 * 16], type: ['utf', 'asc', 'buf'], - dur: [1, 3], + dur: [5], }); var dur; diff --git a/benchmark/net/net-s2c.js b/benchmark/net/net-s2c.js index 96cb67d242..79e22494a7 100644 --- a/benchmark/net/net-s2c.js +++ b/benchmark/net/net-s2c.js @@ -6,7 +6,7 @@ var PORT = common.PORT; var bench = common.createBenchmark(main, { len: [102400, 1024 * 1024 * 16], type: ['utf', 'asc', 'buf'], - dur: [1, 3], + dur: [5] }); var dur; diff --git a/benchmark/net/tcp-raw-c2s.js b/benchmark/net/tcp-raw-c2s.js index 2664e25fe0..e5b3662a8b 100644 --- a/benchmark/net/tcp-raw-c2s.js +++ b/benchmark/net/tcp-raw-c2s.js @@ -9,7 +9,7 @@ var common = require('../common.js'); var bench = common.createBenchmark(main, { len: [102400, 1024 * 1024 * 16], type: ['utf', 'asc', 'buf'], - dur: [1, 3], + dur: [5] }); var TCP = process.binding('tcp_wrap').TCP; diff --git a/benchmark/net/tcp-raw-pipe.js b/benchmark/net/tcp-raw-pipe.js index d55c2c5d7e..4e53c1f0ca 100644 --- a/benchmark/net/tcp-raw-pipe.js +++ b/benchmark/net/tcp-raw-pipe.js @@ -9,7 +9,7 @@ var common = require('../common.js'); var bench = common.createBenchmark(main, { len: [102400, 1024 * 1024 * 16], type: ['utf', 'asc', 'buf'], - dur: [1, 3], + dur: [5] }); var TCP = process.binding('tcp_wrap').TCP; diff --git a/benchmark/net/tcp-raw-s2c.js b/benchmark/net/tcp-raw-s2c.js index 94a90f29de..93a917e06f 100644 --- a/benchmark/net/tcp-raw-s2c.js +++ b/benchmark/net/tcp-raw-s2c.js @@ -9,7 +9,7 @@ var common = require('../common.js'); var bench = common.createBenchmark(main, { len: [102400, 1024 * 1024 * 16], type: ['utf', 'asc', 'buf'], - dur: [1, 3], + dur: [5] }); var TCP = process.binding('tcp_wrap').TCP; diff --git a/benchmark/tls/throughput.js b/benchmark/tls/throughput.js index 3896382492..88118afbc0 100644 --- a/benchmark/tls/throughput.js +++ b/benchmark/tls/throughput.js @@ -1,6 +1,6 @@ var common = require('../common.js'); var bench = common.createBenchmark(main, { - dur: [1, 3], + dur: [5], type: ['buf', 'asc', 'utf'], size: [2, 1024, 1024 * 1024] }); diff --git a/benchmark/tls/tls-connect.js b/benchmark/tls/tls-connect.js index b3bd3e3c7a..0da448ee85 100644 --- a/benchmark/tls/tls-connect.js +++ b/benchmark/tls/tls-connect.js @@ -6,7 +6,7 @@ var assert = require('assert'), var common = require('../common.js'); var bench = common.createBenchmark(main, { concurrency: [1, 10], - dur: [1, 3] + dur: [5] }); var clientConn = 0;