Skip to content

Commit

Permalink
Update benchmark results
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Sep 23, 2023
1 parent 1fa6c03 commit 1e373e2
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions test/bench/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ https://sharp.pixelplumbing.com/performance

## Environment

* Intel Core i5-8600K CPU 3.60GHz (Coffee Lake), 1 CPU, 6 logical and 6 physical cores
* AMD Ryzen 9 7900, 1 CPU, 24 logical and 12 physical cores
* Fedora 38
* Node v18.16.0
* Node v20.5.0

## Images

Expand All @@ -36,29 +36,29 @@ PNG images are compressed with no filtering and run through zlib with a

| Module | Format | Input | Output | Ops/sec | Speed-up |
|:-----------------|:-------|:-------|:-------|--------:|---------:|
| jimp<sup>1</sup> | JPEG | buffer | buffer | 0.99 | 1.0 |
| squoosh-cli | JPEG | file | file | 1.36 | 1.4 |
| squoosh-lib | JPEG | buffer | buffer | 2.23 | 2.3 |
| wasm-vips | JPEG | buffer | buffer | 6.54 | 6.6 |
| imagemagick | JPEG | file | file | 9.78 | 9.9 |
| gm | JPEG | buffer | buffer | 9.78 | 9.9 |
| gm | JPEG | file | file | 9.81 | 9.9 |
| sharp | JPEG | stream | stream | 43.00 | 43.4 |
| sharp | JPEG | file | file | 45.02 | 45.5 |
| sharp | JPEG | buffer | buffer | 46.64 | 47.1 |
| jimp<sup>1</sup> | JPEG | buffer | buffer | 1.92 | 1.0 |
| squoosh-cli | JPEG | file | file | 2.31 | 1.2 |
| squoosh-lib | JPEG | buffer | buffer | 3.26 | 1.7 |
| wasm-vips | JPEG | buffer | buffer | 16.98 | 8.8 |
| gm | JPEG | file | file | 18.05 | 9.4 |
| gm | JPEG | buffer | buffer | 18.06 | 9.4 |
| imagemagick | JPEG | file | file | 19.02 | 9.9 |
| sharp | JPEG | stream | stream | 64.48 | 33.6 |
| sharp | JPEG | file | file | 65.71 | 34.2 |
| sharp | JPEG | buffer | buffer | 66.06 | 34.4 |
| | | | | | |
| squoosh-cli | PNG | file | file | 0.47 | 1.0 |
| squoosh-lib | PNG | buffer | buffer | 0.55 | 1.2 |
| jimp<sup>2</sup> | PNG | buffer | buffer | 5.71 | 12.1 |
| wasm-vips | PNG | buffer | buffer | 6.98 | 14.9 |
| gm | PNG | file | file | 7.85 | 16.7 |
| imagemagick | PNG | file | file | 8.55 | 18.2 |
| sharp | PNG | file | file | 21.43 | 45.6 |
| sharp | PNG | buffer | buffer | 21.72 | 46.2 |
| squoosh-cli | PNG | file | file | 0.76 | 1.0 |
| squoosh-lib | PNG | buffer | buffer | 0.99 | 1.3 |
| jimp<sup>2</sup> | PNG | buffer | buffer | 6.24 | 8.2 |
| gm | PNG | file | file | 12.62 | 16.6 |
| imagemagick | PNG | file | file | 13.03 | 17.1 |
| wasm-vips | PNG | buffer | buffer | 13.80 | 18.2 |
| sharp | PNG | buffer | buffer | 19.57 | 25.8 |
| sharp | PNG | file | file | 19.66 | 25.9 |
| | | | | | |
| wasm-vips | WebP | buffer | buffer | 11.84 | 1.0 |
| sharp | WebP | file | file | 14.31 | 1.2 |
| sharp | WebP | buffer | buffer | 14.39 | 1.2 |
| wasm-vips | WebP | buffer | buffer | 18.65 | 1.0 |
| sharp | WebP | file | file | 22.31 | 1.2 |
| sharp | WebP | buffer | buffer | 22.44 | 1.2 |

<sup>1</sup>: jimp does not support Lanczos 3, bicubic resampling used instead.
<sup>2</sup>: jimp does not support premultiply/unpremultiply.
Expand Down

0 comments on commit 1e373e2

Please sign in to comment.