Benchmark test updates ahead of v0.12.0

This commit is contained in:
Lovell Fuller 2015-11-23 10:53:52 +00:00
parent e21277ceba
commit 607d157b76
3 changed files with 6 additions and 4 deletions

View File

@ -57,7 +57,7 @@
"devDependencies": { "devDependencies": {
"async": "^1.5.0", "async": "^1.5.0",
"coveralls": "^2.11.4", "coveralls": "^2.11.4",
"exif-reader": "1.0.0", "exif-reader": "^1.0.0",
"icc": "^0.0.2", "icc": "^0.0.2",
"istanbul": "^0.4.0", "istanbul": "^0.4.0",
"mocha": "^2.3.4", "mocha": "^2.3.4",

View File

@ -12,10 +12,10 @@
"benchmark": "^1.0.0", "benchmark": "^1.0.0",
"gm": "^1.21.0", "gm": "^1.21.0",
"imagemagick": "^0.1.3", "imagemagick": "^0.1.3",
"imagemagick-native": "^1.8.0", "imagemagick-native": "elad/node-imagemagick-native",
"jimp": "^0.2.19", "jimp": "^0.2.19",
"lwip": "^0.0.8", "lwip": "^0.0.8",
"semver": "^5.0.3" "semver": "^5.1.0"
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"engines": { "engines": {

View File

@ -1,5 +1,7 @@
'use strict'; 'use strict';
process.env.UV_THREADPOOL_SIZE = 64;
var assert = require('assert'); var assert = require('assert');
var async = require('async'); var async = require('async');
@ -15,7 +17,7 @@ var timer = setInterval(function() {
console.dir(sharp.counters()); console.dir(sharp.counters());
}, 100); }, 100);
async.mapSeries([1, 1, 2, 4, 8, 16, 32, 64, 128], function(parallelism, next) { async.mapSeries([1, 1, 2, 4, 8, 16, 32, 64], function(parallelism, next) {
var start = new Date().getTime(); var start = new Date().getTime();
async.times(parallelism, async.times(parallelism,
function(id, callback) { function(id, callback) {