diff options
author | David Turner <david@alice.localdomain> | 2006-12-14 06:55:58 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-12-14 09:27:45 -0800 |
commit | e9bef30d2bcdf41c7b7f20b3517839c37e752f75 (patch) | |
tree | d13cb712d4048ee1c2faa334c3007d3dd0dd24c4 /test/mask.c | |
parent | af9cce6aa295327b5256f55900b3debf9112b6ca (diff) |
Optimize gradient computations
We update the test suite reference images where needed, (pdiff
avoided a few, but most still needed updating). We take advantage
of the need for new reference images to shrink some of the giant
tests to speed them up a bit.
This optimization provides a 2x improvement in linear gradient
generation performance (numbers from an x86 laptop):
image-rgb paint_linear_rgba_source-512 26.13 -> 11.13: 2.35x speedup
█▍
image-rgb paint_linear_rgba_source-256 6.47 -> 2.76: 2.34x speedup
█▍
image-rgba paint_linear_rgb_over-256 6.51 -> 2.86: 2.28x speedup
█▎
image-rgb paint_linear_rgba_over-512 28.62 -> 13.70: 2.09x speedup
█▏
image-rgba fill_linear_rgb_over-256 3.24 -> 1.94: 1.66x speedup
▋
image-rgb stroke_linear_rgba_over-256 5.68 -> 4.10: 1.39x speedup
▍
Diffstat (limited to 'test/mask.c')
-rw-r--r-- | test/mask.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mask.c b/test/mask.c index 84ebf386e..984b82df8 100644 --- a/test/mask.c +++ b/test/mask.c @@ -28,9 +28,9 @@ #include "cairo-test.h" #include <stdio.h> -#define WIDTH 64 -#define HEIGHT 64 -#define PAD 10 +#define WIDTH 16 +#define HEIGHT 16 +#define PAD 2 const char png_filename[] = "romedalen.png"; |