Update perf test results to include jimp

Remove imagemagick-native until Node v4 support
This commit is contained in:
Lovell Fuller 2015-10-10 18:41:01 +01:00
parent 97960b5f91
commit 23e14861be

View File

@ -3,18 +3,17 @@
### Test environment ### Test environment
* AWS EC2 [c4.xlarge](http://aws.amazon.com/ec2/instance-types/#c4) * AWS EC2 [c4.xlarge](http://aws.amazon.com/ec2/instance-types/#c4)
* Ubuntu 15.04 * Amazon Linux AMI 2015.09
* Node.js 0.12.7 * Node.js v4.1.2
* libvips 8.0.2
* liborc 0.4.22
### The contenders ### The contenders
* [lwip](https://www.npmjs.com/package/lwip) 0.0.7 - Wrapper around CImg, compiles dependencies from source * [jimp](https://www.npmjs.com/package/jimp) v0.2.8 - Image processing in pure JavaScript.
* [imagemagick-native](https://www.npmjs.com/package/imagemagick-native) git@45d4e2e - Wrapper around libmagick++, supports Buffers only. * [lwip](https://www.npmjs.com/package/lwip) v0.0.8 - Wrapper around CImg, compiles dependencies from source.
* [imagemagick](https://www.npmjs.com/package/imagemagick) 0.1.3 - Supports filesystem only and "*has been unmaintained for a long time*". * ~~[imagemagick-native](https://www.npmjs.com/package/imagemagick-native)~~ - Wrapper around libmagick++, supports Buffers only. Does not currently work with Node.js v4.
* [gm](https://www.npmjs.com/package/gm) 1.18.1 - Fully featured wrapper around GraphicsMagick's `convert` command line utility. * [imagemagick](https://www.npmjs.com/package/imagemagick) v0.1.3 - Supports filesystem only and "*has been unmaintained for a long time*".
* sharp 0.11.0 - Caching within libvips disabled to ensure a fair comparison. * [gm](https://www.npmjs.com/package/gm) v1.20.0 - Fully featured wrapper around GraphicsMagick's `convert` command line utility.
* sharp v0.11.3 / libvips v8.1.0 - Caching within libvips disabled to ensure a fair comparison.
### The task ### The task
@ -22,19 +21,20 @@ Decompress a 2725x2225 JPEG image, resize to 720x480 using bilinear interpolatio
### Results ### Results
| Module | Input | Output | Ops/sec | Speed-up | | Module | Input | Output | Ops/sec | Speed-up |
| :----------------- | :----- | :----- | ------: | -------: | | :---------- | :----- | :----- | ------: | -------: |
| lwip | file | file | 1.75 | 1 | | jimp | file | file | 0.94 | 1.0 |
| lwip | buffer | buffer | 2.21 | 1.3 | | jimp | buffer | buffer | 1.12 | 1.2 |
| imagemagick-native | buffer | buffer | 7.13 | 4.1 | | lwip | file | file | 1.12 | 1.2 |
| gm | buffer | buffer | 7.27 | 4.2 | | lwip | buffer | buffer | 1.13 | 1.2 |
| gm | file | file | 7.33 | 4.2 | | gm | buffer | buffer | 5.50 | 5.9 |
| imagemagick | file | file | 10.04 | 5.7 | | gm | file | file | 5.55 | 5.9 |
| sharp | stream | stream | 23.12 | 13.2 | | imagemagick | file | file | 8.66 | 9.2 |
| sharp | file | file | 24.43 | 14.0 | | sharp | stream | stream | 16.33 | 17.4 |
| sharp | file | buffer | 24.55 | 14.0 | | sharp | file | file | 16.88 | 18.0 |
| sharp | buffer | file | 24.86 | 14.2 | | sharp | file | buffer | 16.90 | 18.1 |
| sharp | buffer | buffer | 24.92 | 14.2 | | sharp | buffer | file | 16.99 | 18.1 |
| sharp | buffer | buffer | 17.06 | 18.1 |
Greater performance can be expected with caching enabled (default) and using 8+ core machines. Greater performance can be expected with caching enabled (default) and using 8+ core machines.
@ -57,7 +57,9 @@ sudo apt-get install imagemagick graphicsmagick libmagick++-dev
```sh ```sh
git clone https://github.com/lovell/sharp.git git clone https://github.com/lovell/sharp.git
cd sharp/test/bench cd sharp
npm install
cd test/bench
npm install npm install
npm test npm test
``` ```