Skip to content

Commit d7d03b1

Browse files
committed
Update benchmark target image height for fairer tests lovell#624
1 parent dfd6d95 commit d7d03b1

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

docs/performance.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
### Test environment
44

5-
* AWS EC2 [c4.xlarge](http://aws.amazon.com/ec2/instance-types/#c4) (4x E5-2666 v3 @ 2.90GHz)
6-
* Ubuntu 16.04.1 LTS (HVM, SSD)
5+
* AWS EC2 eu-central-1 [c4.xlarge](http://aws.amazon.com/ec2/instance-types/#c4) (4x E5-2666 v3 @ 2.90GHz)
6+
* Ubuntu 16.04.1 LTS (HVM, SSD, 20161115, ami-82cf0aed)
77
* Node.js v6.9.1
88

99
### The contenders
@@ -19,25 +19,25 @@
1919
### The task
2020

2121
Decompress a 2725x2225 JPEG image,
22-
resize to 720x480 using Lanczos 3 resampling (where available),
22+
resize to 720x588 using Lanczos 3 resampling (where available),
2323
then compress to JPEG at a "quality" setting of 80.
2424

2525
### Results
2626

2727
| Module | Input | Output | Ops/sec | Speed-up |
2828
| :----------------- | :----- | :----- | ------: | -------: |
29-
| jimp (bilinear) | buffer | buffer | 1.05 | 1.0 |
30-
| lwip | buffer | buffer | 2.32 | 2.2 |
31-
| mapnik | buffer | buffer | 2.90 | 2.8 |
32-
| imagemagick-native | buffer | buffer | 4.00 | 3.8 |
33-
| imagemagick | file | file | 7.16 | 6.8 |
34-
| gm | buffer | buffer | 7.12 | 6.8 |
35-
| gm | file | file | 7.16 | 6.8 |
36-
| sharp | stream | stream | 27.97 | 26.6 |
37-
| sharp | file | file | 28.69 | 27.3 |
38-
| sharp | buffer | file | 28.81 | 27.4 |
39-
| sharp | file | buffer | 28.99 | 27.6 |
40-
| sharp | buffer | buffer | 29.17 | 27.8 |
29+
| jimp (bilinear) | buffer | buffer | 1.06 | 1.0 |
30+
| lwip | buffer | buffer | 1.87 | 1.8 |
31+
| mapnik | buffer | buffer | 2.91 | 2.7 |
32+
| imagemagick-native | buffer | buffer | 4.03 | 3.8 |
33+
| imagemagick | file | file | 7.10 | 6.7 |
34+
| gm | buffer | buffer | 7.08 | 6.7 |
35+
| gm | file | file | 7.10 | 6.7 |
36+
| sharp | stream | stream | 27.61 | 26.0 |
37+
| sharp | file | file | 28.41 | 26.8 |
38+
| sharp | buffer | file | 28.71 | 27.1 |
39+
| sharp | file | buffer | 28.60 | 27.0 |
40+
| sharp | buffer | buffer | 29.08 | 27.4 |
4141

4242
Greater libvips performance can be expected with caching enabled (default)
4343
and using 8+ core machines, especially those with larger L1/L2 CPU caches.

test/bench/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"test": "VIPS_WARNING=0 node perf && node random && node parallel"
99
},
1010
"devDependencies": {
11-
"async": "^2.1.1",
11+
"async": "^2.1.4",
1212
"benchmark": "^2.1.2",
1313
"gm": "^1.23.0",
1414
"imagemagick": "^0.1.3",

test/bench/perf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ try {
2828
const fixtures = require('../fixtures');
2929

3030
const width = 720;
31-
const height = 480;
31+
const height = 588;
3232

3333
// Disable libvips cache to ensure tests are as fair as they can be
3434
sharp.cache(false);

0 commit comments

Comments
 (0)