|
2 | 2 |
|
3 | 3 | ### Test environment |
4 | 4 |
|
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) |
7 | 7 | * Node.js v6.9.1 |
8 | 8 |
|
9 | 9 | ### The contenders |
|
19 | 19 | ### The task |
20 | 20 |
|
21 | 21 | 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), |
23 | 23 | then compress to JPEG at a "quality" setting of 80. |
24 | 24 |
|
25 | 25 | ### Results |
26 | 26 |
|
27 | 27 | | Module | Input | Output | Ops/sec | Speed-up | |
28 | 28 | | :----------------- | :----- | :----- | ------: | -------: | |
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 | |
41 | 41 |
|
42 | 42 | Greater libvips performance can be expected with caching enabled (default) |
43 | 43 | and using 8+ core machines, especially those with larger L1/L2 CPU caches. |
|
0 commit comments