diff options
Diffstat (limited to 'perf/suites.js')
-rw-r--r-- | perf/suites.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/perf/suites.js b/perf/suites.js index 677517c..77ab59b 100644 --- a/perf/suites.js +++ b/perf/suites.js @@ -131,6 +131,24 @@ module.exports = [{ }, done); } }, { + name: "concat", + // args lists are passed to the setup function + args: [ + [10], + [300], + [10000] + ], + setup: function setup(count) { + tasks = _.range(count); + }, + fn: function(async, done) { + async.concat(tasks, function(num, cb) { + async.setImmediate(function() { + cb(null, [num]); + }); + }, done); + } +}, { name: "eachOf", // args lists are passed to the setup function args: [ |