mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +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"
|
"test": "node perf && node random && node parallel"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"async": "^1.5.0",
|
"async": "^1.5.2",
|
||||||
"benchmark": "^1.0.0",
|
"benchmark": "^2.0.0",
|
||||||
"gm": "^1.21.0",
|
"gm": "^1.21.0",
|
||||||
"imagemagick": "^0.1.3",
|
"imagemagick": "^0.1.3",
|
||||||
"imagemagick-native": "elad/node-imagemagick-native",
|
"imagemagick-native": "elad/node-imagemagick-native",
|
||||||
|
@ -535,7 +535,7 @@ async.series({
|
|||||||
}).on('cycle', function(event) {
|
}).on('cycle', function(event) {
|
||||||
console.log('jpeg-linear ' + String(event.target));
|
console.log('jpeg-linear ' + String(event.target));
|
||||||
}).on('complete', function() {
|
}).on('complete', function() {
|
||||||
callback(null, this.filter('fastest').pluck('name'));
|
callback(null, this.filter('fastest').map('name'));
|
||||||
}).run();
|
}).run();
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -782,7 +782,7 @@ async.series({
|
|||||||
}).on('cycle', function(event) {
|
}).on('cycle', function(event) {
|
||||||
console.log('jpeg-cubic ' + String(event.target));
|
console.log('jpeg-cubic ' + String(event.target));
|
||||||
}).on('complete', function() {
|
}).on('complete', function() {
|
||||||
callback(null, this.filter('fastest').pluck('name'));
|
callback(null, this.filter('fastest').map('name'));
|
||||||
}).run();
|
}).run();
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -882,7 +882,7 @@ async.series({
|
|||||||
}).on('cycle', function(event) {
|
}).on('cycle', function(event) {
|
||||||
console.log('interpolators ' + String(event.target));
|
console.log('interpolators ' + String(event.target));
|
||||||
}).on('complete', function() {
|
}).on('complete', function() {
|
||||||
callback(null, this.filter('fastest').pluck('name'));
|
callback(null, this.filter('fastest').map('name'));
|
||||||
}).run();
|
}).run();
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1115,7 +1115,7 @@ async.series({
|
|||||||
pngSuite.on('cycle', function(event) {
|
pngSuite.on('cycle', function(event) {
|
||||||
console.log(' png ' + String(event.target));
|
console.log(' png ' + String(event.target));
|
||||||
}).on('complete', function() {
|
}).on('complete', function() {
|
||||||
callback(null, this.filter('fastest').pluck('name'));
|
callback(null, this.filter('fastest').map('name'));
|
||||||
}).run();
|
}).run();
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1182,7 +1182,7 @@ async.series({
|
|||||||
}).on('cycle', function(event) {
|
}).on('cycle', function(event) {
|
||||||
console.log('webp ' + String(event.target));
|
console.log('webp ' + String(event.target));
|
||||||
}).on('complete', function() {
|
}).on('complete', function() {
|
||||||
callback(null, this.filter('fastest').pluck('name'));
|
callback(null, this.filter('fastest').map('name'));
|
||||||
}).run();
|
}).run();
|
||||||
}
|
}
|
||||||
}, function(err, results) {
|
}, function(err, results) {
|
||||||
|
@ -70,7 +70,7 @@ new Benchmark.Suite('random').add('imagemagick', {
|
|||||||
}).on('cycle', function(event) {
|
}).on('cycle', function(event) {
|
||||||
console.log(String(event.target));
|
console.log(String(event.target));
|
||||||
}).on('complete', function() {
|
}).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);
|
assert.strictEqual('sharp', String(winner), 'sharp was slower than ' + winner);
|
||||||
console.dir(sharp.cache());
|
console.dir(sharp.cache());
|
||||||
}).run();
|
}).run();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user