Browse Source

benchmark: bump eventemitter number of iterations

Some of the benchmarks that were added in commit 847b9d2 complete too
quickly to draw meaningful conclusions from.  Increase the number of
iterations to make them run longer.

PR-URL: https://github.com/iojs/io.js/pull/746
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
v1.8.0-commit
Ben Noordhuis 10 years ago
committed by micnic
parent
commit
2c3121c606
  1. 2
      benchmark/events/ee-emit-multi-args.js
  2. 2
      benchmark/events/ee-emit.js
  3. 2
      benchmark/events/ee-listener-count.js
  4. 2
      benchmark/events/ee-listeners-many.js
  5. 2
      benchmark/events/ee-listeners.js

2
benchmark/events/ee-emit-multi-args.js

@ -1,7 +1,7 @@
var common = require('../common.js');
var EventEmitter = require('events').EventEmitter;
var bench = common.createBenchmark(main, {n: [25e4]});
var bench = common.createBenchmark(main, {n: [2e6]});
function main(conf) {
var n = conf.n | 0;

2
benchmark/events/ee-emit.js

@ -1,7 +1,7 @@
var common = require('../common.js');
var EventEmitter = require('events').EventEmitter;
var bench = common.createBenchmark(main, {n: [25e4]});
var bench = common.createBenchmark(main, {n: [2e6]});
function main(conf) {
var n = conf.n | 0;

2
benchmark/events/ee-listener-count.js

@ -1,7 +1,7 @@
var common = require('../common.js');
var EventEmitter = require('events').EventEmitter;
var bench = common.createBenchmark(main, {n: [25e4]});
var bench = common.createBenchmark(main, {n: [5e7]});
function main(conf) {
var n = conf.n | 0;

2
benchmark/events/ee-listeners-many.js

@ -1,7 +1,7 @@
var common = require('../common.js');
var EventEmitter = require('events').EventEmitter;
var bench = common.createBenchmark(main, {n: [25e4]});
var bench = common.createBenchmark(main, {n: [5e6]});
function main(conf) {
var n = conf.n | 0;

2
benchmark/events/ee-listeners.js

@ -1,7 +1,7 @@
var common = require('../common.js');
var EventEmitter = require('events').EventEmitter;
var bench = common.createBenchmark(main, {n: [25e4]});
var bench = common.createBenchmark(main, {n: [5e6]});
function main(conf) {
var n = conf.n | 0;

Loading…
Cancel
Save