Update benchmark test dependencies

This commit is contained in:
Lovell Fuller 2016-01-28 12:15:41 +00:00
parent b3d6e94984
commit 41e50770d1
3 changed files with 8 additions and 8 deletions

View File

@ -8,8 +8,8 @@
"test": "node perf && node random && node parallel"
},
"devDependencies": {
"async": "^1.5.0",
"benchmark": "^1.0.0",
"async": "^1.5.2",
"benchmark": "^2.0.0",
"gm": "^1.21.0",
"imagemagick": "^0.1.3",
"imagemagick-native": "elad/node-imagemagick-native",

View File

@ -535,7 +535,7 @@ async.series({
}).on('cycle', function(event) {
console.log('jpeg-linear ' + String(event.target));
}).on('complete', function() {
callback(null, this.filter('fastest').pluck('name'));
callback(null, this.filter('fastest').map('name'));
}).run();
},
@ -782,7 +782,7 @@ async.series({
}).on('cycle', function(event) {
console.log('jpeg-cubic ' + String(event.target));
}).on('complete', function() {
callback(null, this.filter('fastest').pluck('name'));
callback(null, this.filter('fastest').map('name'));
}).run();
},
@ -882,7 +882,7 @@ async.series({
}).on('cycle', function(event) {
console.log('interpolators ' + String(event.target));
}).on('complete', function() {
callback(null, this.filter('fastest').pluck('name'));
callback(null, this.filter('fastest').map('name'));
}).run();
},
@ -1115,7 +1115,7 @@ async.series({
pngSuite.on('cycle', function(event) {
console.log(' png ' + String(event.target));
}).on('complete', function() {
callback(null, this.filter('fastest').pluck('name'));
callback(null, this.filter('fastest').map('name'));
}).run();
},
@ -1182,7 +1182,7 @@ async.series({
}).on('cycle', function(event) {
console.log('webp ' + String(event.target));
}).on('complete', function() {
callback(null, this.filter('fastest').pluck('name'));
callback(null, this.filter('fastest').map('name'));
}).run();
}
}, function(err, results) {

View File

@ -70,7 +70,7 @@ new Benchmark.Suite('random').add('imagemagick', {
}).on('cycle', function(event) {
console.log(String(event.target));
}).on('complete', function() {
var winner = this.filter('fastest').pluck('name');
var winner = this.filter('fastest').map('name');
assert.strictEqual('sharp', String(winner), 'sharp was slower than ' + winner);
console.dir(sharp.cache());
}).run();