@@ -17,14 +17,15 @@ load, save, resample and filter.
17
17
The vips website has this same test performed in many different image
18
18
processing systems, with some discussion:
19
19
20
- https://github.com/jcupitt /libvips/wiki/Speed-and-memory-use
20
+ https://github.com/libvips /libvips/wiki/Speed-and-memory-use
21
21
22
22
### Results
23
23
24
- Run on 21/9/16 with vips8.4, libgd2.1.1, imagemagick6.8.9 on a laptop.
24
+ Run on 17/8/23 with libvips 8.14, libgd 2.3.3, imagick 3.7 on Ubuntu 23.04
25
+ with a 3955WX.
25
26
26
27
```
27
- $ ./runner
28
+ $ VIPS_CONCURRENCY=4 ./runner
28
29
building test image ...
29
30
tile=10
30
31
test image is 5000 by 5000 pixels
@@ -37,55 +38,15 @@ measuring memuse for ./imagick.php ... done
37
38
measuring memuse for ./gd.php ... done
38
39
39
40
real time in seconds, fastest of three runs
40
- benchmark jpeg
41
- vips.php 0.53
42
- imagick.php 1.96
43
- gd.php 6.86
41
+ benchmark jpeg
42
+ vips.php 0.28
43
+ imagick.php 1.58
44
+ gd.php 1.68
44
45
45
46
peak memory use in KB
46
- benchmark peak RSS
47
- vips.php 67024
48
- gd.php 305620
49
- imagick.php 519860
47
+ benchmark peak RSS
48
+ vips.php 80384
49
+ gd.php 220928
50
+ imagick.php 521128
50
51
```
51
52
52
- The convolution in gd is rather slow. If you comment that part out of the three
53
- tests, the differences come down a lot:
54
-
55
- ```
56
- real time in seconds, fastest of three runs
57
- benchmark jpeg
58
- vips.php 0.41
59
- imagick.php 1.20
60
- gd.php 1.85
61
- ```
62
-
63
- ### Preparation
64
-
65
- You need the libvips library, plus all the development files. You can probably
66
- install via your package manager on linux or macOS. For Windows, you can
67
- download a pre-compiled binary from the vips website:
68
-
69
- https://github.com/jcupitt/libvips/releases
70
-
71
- You can also compile libvips from source:
72
-
73
- https://github.com/jcupitt/libvips
74
-
75
- You need to install the ` vips ` extension for PHP:
76
-
77
- ```
78
- $ pecl install vips
79
- ```
80
-
81
- ` gd ` is probably built into your php already. ` imagick ` is easy to install:
82
-
83
- ```
84
- $ pecl install imagick
85
- ```
86
-
87
- You need to pull in the php packages that this benchmark needs.
88
-
89
- ```
90
- $ php ~/packages/php/composer.phar install
91
- ```
0 commit comments