Browse Source

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.
v0.9.11-release
isaacs 12 years ago
parent
commit
4b80f217cd
  1. 2
      benchmark/fs/readfile.js
  2. 2
      benchmark/fs/write-stream-throughput.js
  3. 2
      benchmark/misc/startup.js
  4. 2
      benchmark/net/net-c2s.js
  5. 2
      benchmark/net/net-pipe.js
  6. 2
      benchmark/net/net-s2c.js
  7. 2
      benchmark/net/tcp-raw-c2s.js
  8. 2
      benchmark/net/tcp-raw-pipe.js
  9. 2
      benchmark/net/tcp-raw-s2c.js
  10. 2
      benchmark/tls/throughput.js
  11. 2
      benchmark/tls/tls-connect.js

2
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]
});

2
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]
});

2
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) {

2
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;

2
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;

2
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;

2
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;

2
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;

2
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;

2
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]
});

2
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;

Loading…
Cancel
Save