Update benchmark target image height for fairer tests #624

This commit is contained in:
Lovell Fuller 2016-11-27 19:51:55 +00:00
parent dfd6d95209
commit d7d03b1ca2
3 changed files with 17 additions and 17 deletions

View File

@ -2,8 +2,8 @@
### Test environment ### Test environment
* AWS EC2 [c4.xlarge](http://aws.amazon.com/ec2/instance-types/#c4) (4x E5-2666 v3 @ 2.90GHz) * AWS EC2 eu-central-1 [c4.xlarge](http://aws.amazon.com/ec2/instance-types/#c4) (4x E5-2666 v3 @ 2.90GHz)
* Ubuntu 16.04.1 LTS (HVM, SSD) * Ubuntu 16.04.1 LTS (HVM, SSD, 20161115, ami-82cf0aed)
* Node.js v6.9.1 * Node.js v6.9.1
### The contenders ### The contenders
@ -19,25 +19,25 @@
### The task ### The task
Decompress a 2725x2225 JPEG image, Decompress a 2725x2225 JPEG image,
resize to 720x480 using Lanczos 3 resampling (where available), resize to 720x588 using Lanczos 3 resampling (where available),
then compress to JPEG at a "quality" setting of 80. then compress to JPEG at a "quality" setting of 80.
### Results ### Results
| Module | Input | Output | Ops/sec | Speed-up | | Module | Input | Output | Ops/sec | Speed-up |
| :----------------- | :----- | :----- | ------: | -------: | | :----------------- | :----- | :----- | ------: | -------: |
| jimp (bilinear) | buffer | buffer | 1.05 | 1.0 | | jimp (bilinear) | buffer | buffer | 1.06 | 1.0 |
| lwip | buffer | buffer | 2.32 | 2.2 | | lwip | buffer | buffer | 1.87 | 1.8 |
| mapnik | buffer | buffer | 2.90 | 2.8 | | mapnik | buffer | buffer | 2.91 | 2.7 |
| imagemagick-native | buffer | buffer | 4.00 | 3.8 | | imagemagick-native | buffer | buffer | 4.03 | 3.8 |
| imagemagick | file | file | 7.16 | 6.8 | | imagemagick | file | file | 7.10 | 6.7 |
| gm | buffer | buffer | 7.12 | 6.8 | | gm | buffer | buffer | 7.08 | 6.7 |
| gm | file | file | 7.16 | 6.8 | | gm | file | file | 7.10 | 6.7 |
| sharp | stream | stream | 27.97 | 26.6 | | sharp | stream | stream | 27.61 | 26.0 |
| sharp | file | file | 28.69 | 27.3 | | sharp | file | file | 28.41 | 26.8 |
| sharp | buffer | file | 28.81 | 27.4 | | sharp | buffer | file | 28.71 | 27.1 |
| sharp | file | buffer | 28.99 | 27.6 | | sharp | file | buffer | 28.60 | 27.0 |
| sharp | buffer | buffer | 29.17 | 27.8 | | sharp | buffer | buffer | 29.08 | 27.4 |
Greater libvips performance can be expected with caching enabled (default) Greater libvips performance can be expected with caching enabled (default)
and using 8+ core machines, especially those with larger L1/L2 CPU caches. and using 8+ core machines, especially those with larger L1/L2 CPU caches.

View File

@ -8,7 +8,7 @@
"test": "VIPS_WARNING=0 node perf && node random && node parallel" "test": "VIPS_WARNING=0 node perf && node random && node parallel"
}, },
"devDependencies": { "devDependencies": {
"async": "^2.1.1", "async": "^2.1.4",
"benchmark": "^2.1.2", "benchmark": "^2.1.2",
"gm": "^1.23.0", "gm": "^1.23.0",
"imagemagick": "^0.1.3", "imagemagick": "^0.1.3",

View File

@ -28,7 +28,7 @@ try {
const fixtures = require('../fixtures'); const fixtures = require('../fixtures');
const width = 720; const width = 720;
const height = 480; const height = 588;
// Disable libvips cache to ensure tests are as fair as they can be // Disable libvips cache to ensure tests are as fair as they can be
sharp.cache(false); sharp.cache(false);