Skip to content

Commit 55894e5

Browse files
committed
update README with new timings
1 parent 6f5965d commit 55894e5

File tree

1 file changed

+12
-51
lines changed

1 file changed

+12
-51
lines changed

README.md

+12-51
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ load, save, resample and filter.
1717
The vips website has this same test performed in many different image
1818
processing systems, with some discussion:
1919

20-
https://github.com/jcupitt/libvips/wiki/Speed-and-memory-use
20+
https://github.com/libvips/libvips/wiki/Speed-and-memory-use
2121

2222
### Results
2323

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.
2526

2627
```
27-
$ ./runner
28+
$ VIPS_CONCURRENCY=4 ./runner
2829
building test image ...
2930
tile=10
3031
test image is 5000 by 5000 pixels
@@ -37,55 +38,15 @@ measuring memuse for ./imagick.php ... done
3738
measuring memuse for ./gd.php ... done
3839
3940
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
4445
4546
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
5051
```
5152

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

Comments
 (0)