summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Yeates <yeatesgraeme@gmail.com>2016-10-05 10:37:38 -0400
committerGraeme Yeates <yeatesgraeme@gmail.com>2016-10-05 10:39:17 -0400
commit0d2dbf74b846aa923b492cd42e4d04e279dd32ec (patch)
tree608d68ed3ee5c65429f528d343d8863f6dec8cb5
parent75d4a2e2b533ee3577954729b65967f21f212ad8 (diff)
downloadasync-0d2dbf74b846aa923b492cd42e4d04e279dd32ec.tar.gz
Fix perf suite
-rw-r--r--package.json2
-rw-r--r--perf/suites.js38
2 files changed, 20 insertions, 20 deletions
diff --git a/package.json b/package.json
index a85fa04..06f5794 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,7 @@
"babel-plugin-transform-es2015-modules-commonjs": "^6.3.16",
"babel-preset-es2015": "^6.3.13",
"babelify": "^7.2.0",
- "benchmark": "bestiejs/benchmark.js",
+ "benchmark": "^2.1.1",
"bluebird": "^2.9.32",
"chai": "^3.1.0",
"cheerio": "^0.20.0",
diff --git a/perf/suites.js b/perf/suites.js
index dfef9f6..ca400dc 100644
--- a/perf/suites.js
+++ b/perf/suites.js
@@ -10,7 +10,7 @@ module.exports = [{
[300],
[10000]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count);
},
fn: function(async, done) {
@@ -25,7 +25,7 @@ module.exports = [{
[300],
[10000]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count);
},
fn: function(async, done) {
@@ -40,7 +40,7 @@ module.exports = [{
[300],
[10000]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count);
},
fn: function(async, done) {
@@ -56,7 +56,7 @@ module.exports = [{
[300],
[10000]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count);
},
fn: function(async, done) {
@@ -71,7 +71,7 @@ module.exports = [{
[300],
[10000]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count);
},
fn: function(async, done) {
@@ -86,7 +86,7 @@ module.exports = [{
[300],
[10000]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count);
},
fn: function(async, done) {
@@ -101,7 +101,7 @@ module.exports = [{
[300],
[10000]
],
- setup: function(c) {
+ setup: function setup(c) {
count = c;
tasks = _.range(count);
},
@@ -119,7 +119,7 @@ module.exports = [{
[300],
[10000]
],
- setup: function(c) {
+ setup: function setup(c) {
count = c;
tasks = _.range(count);
},
@@ -138,7 +138,7 @@ module.exports = [{
[300],
[10000]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count);
},
fn: function(async, done) {
@@ -153,7 +153,7 @@ module.exports = [{
[300],
[10000]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count);
},
fn: function(async, done) {
@@ -168,7 +168,7 @@ module.exports = [{
[300],
[10000]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count);
},
fn: function(async, done) {
@@ -183,7 +183,7 @@ module.exports = [{
[100],
[1000]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count).map(function() {
return function(cb) {
setImmediate(cb);
@@ -200,7 +200,7 @@ module.exports = [{
[100],
[1000]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count).map(function() {
return function(cb) {
setImmediate(cb);
@@ -217,7 +217,7 @@ module.exports = [{
[100],
[1000]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = [
function(cb) {
return cb(null, 1);
@@ -241,7 +241,7 @@ module.exports = [{
[100000],
[200000]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = count;
},
fn: function(async, done) {
@@ -266,7 +266,7 @@ module.exports = [{
args: [
[500]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count);
},
fn: function(async, done) {
@@ -282,7 +282,7 @@ module.exports = [{
args: [
[500]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count);
},
fn: function(async, done) {
@@ -298,7 +298,7 @@ module.exports = [{
args: [
[500]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count);
},
fn: function(async, done) {
@@ -314,7 +314,7 @@ module.exports = [{
args: [
[500]
],
- setup: function(count) {
+ setup: function setup(count) {
tasks = _.range(count);
},
fn: function(async, done) {