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 | |
parent | 2ed56e52354d871622e6b9ca5bf44fa7409b511b (diff) | |
download | node-4b80f217cd91a5b29089d94398059b85b1ef8a93.tar.gz |
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')
-rw-r--r-- | benchmark/fs/readfile.js | 2 | ||||
-rw-r--r-- | benchmark/fs/write-stream-throughput.js | 2 | ||||
-rw-r--r-- | benchmark/misc/startup.js | 2 | ||||
-rw-r--r-- | benchmark/net/net-c2s.js | 2 | ||||
-rw-r--r-- | benchmark/net/net-pipe.js | 2 | ||||
-rw-r--r-- | benchmark/net/net-s2c.js | 2 | ||||
-rw-r--r-- | benchmark/net/tcp-raw-c2s.js | 2 | ||||
-rw-r--r-- | benchmark/net/tcp-raw-pipe.js | 2 | ||||
-rw-r--r-- | benchmark/net/tcp-raw-s2c.js | 2 | ||||
-rw-r--r-- | benchmark/tls/throughput.js | 2 | ||||
-rw-r--r-- | 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 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] }); diff --git a/benchmark/misc/startup.js b/benchmark/misc/startup.js index 25b3f56fe..aa5b4420f 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 0467643f3..49de7c77c 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 d3908e843..2a5ed8e48 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 96cb67d24..79e22494a 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 2664e25fe..e5b3662a8 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 d55c2c5d7..4e53c1f0c 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 94a90f29d..93a917e06 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 389638249..88118afbc 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 b3bd3e3c7..0da448ee8 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; |