mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Update benchmark test dependencies
This commit is contained in:
parent
b3d6e94984
commit
41e50770d1
@ -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",
|
||||
|
@ -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) {
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user