summaryrefslogtreecommitdiff
path: root/tools/benchmark.php
diff options
context:
space:
mode:
Diffstat (limited to 'tools/benchmark.php')
-rwxr-xr-x[-rw-r--r--]tools/benchmark.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/benchmark.php b/tools/benchmark.php
index 8c97364c..ed7c200d 100644..100755
--- a/tools/benchmark.php
+++ b/tools/benchmark.php
@@ -47,6 +47,11 @@ function benchmark($method) {
}
benchmark('gd');
-benchmark('imagick');
+if (extension_loaded('imagick')) {
+ benchmark('imagick');
+} else {
+ echo "Imagick extension not loaded... skipping.\n";
+}
benchmark('convert');
-
+benchmark('gm');
+becnhmark('convert+gifsicle');