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 | |
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')
-rw-r--r-- | test/clip-operator-ref.png | bin | 36956 -> 8262 bytes | |||
-rw-r--r-- | test/clip-operator-rgb24-ref.png | bin | 16507 -> 3258 bytes | |||
-rw-r--r-- | test/clip-operator.c | 6 | ||||
-rw-r--r-- | test/mask-ref.png | bin | 87899 -> 8381 bytes | |||
-rw-r--r-- | test/mask-rgb24-ref.png | bin | 71010 -> 7041 bytes | |||
-rw-r--r-- | test/mask-svg-argb32-ref.png | bin | 87728 -> 8405 bytes | |||
-rw-r--r-- | test/mask-svg-rgb24-ref.png | bin | 81753 -> 0 bytes | |||
-rw-r--r-- | test/mask.c | 6 | ||||
-rw-r--r-- | test/operator-clear-ref.png | bin | 4933 -> 1084 bytes | |||
-rw-r--r-- | test/operator-clear-rgb24-ref.png | bin | 4218 -> 965 bytes | |||
-rw-r--r-- | test/operator-clear.c | 6 | ||||
-rw-r--r-- | test/operator-source-ref.png | bin | 19763 -> 4422 bytes | |||
-rw-r--r-- | test/operator-source-rgb24-ref.png | bin | 14666 -> 3201 bytes | |||
-rw-r--r-- | test/operator-source.c | 6 | ||||
-rw-r--r-- | test/text-pattern-ref.png | bin | 1721 -> 1717 bytes | |||
-rw-r--r-- | test/text-pattern-rgb24-ref.png | bin | 1418 -> 1414 bytes | |||
-rw-r--r-- | test/trap-clip-ref.png | bin | 71832 -> 5723 bytes | |||
-rw-r--r-- | test/trap-clip-rgb24-ref.png | bin | 63049 -> 5365 bytes | |||
-rw-r--r-- | test/trap-clip-svg-argb32-ref.png | bin | 71728 -> 0 bytes | |||
-rw-r--r-- | test/trap-clip.c | 6 | ||||
-rw-r--r-- | test/unbounded-operator-ref.png | bin | 11964 -> 2777 bytes | |||
-rw-r--r-- | test/unbounded-operator-rgb24-ref.png | bin | 6047 -> 1315 bytes | |||
-rw-r--r-- | test/unbounded-operator.c | 6 |
23 files changed, 18 insertions, 18 deletions
diff --git a/test/clip-operator-ref.png b/test/clip-operator-ref.png Binary files differindex cc8d83277..9f4eff094 100644 --- a/test/clip-operator-ref.png +++ b/test/clip-operator-ref.png diff --git a/test/clip-operator-rgb24-ref.png b/test/clip-operator-rgb24-ref.png Binary files differindex 7be49f0cb..7ab964c30 100644 --- a/test/clip-operator-rgb24-ref.png +++ b/test/clip-operator-rgb24-ref.png diff --git a/test/clip-operator.c b/test/clip-operator.c index 2e014a942..4d7f81e5c 100644 --- a/test/clip-operator.c +++ b/test/clip-operator.c @@ -27,9 +27,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"; diff --git a/test/mask-ref.png b/test/mask-ref.png Binary files differindex b7cee9919..909d9f295 100644 --- a/test/mask-ref.png +++ b/test/mask-ref.png diff --git a/test/mask-rgb24-ref.png b/test/mask-rgb24-ref.png Binary files differindex 5e60fee7f..703236723 100644 --- a/test/mask-rgb24-ref.png +++ b/test/mask-rgb24-ref.png diff --git a/test/mask-svg-argb32-ref.png b/test/mask-svg-argb32-ref.png Binary files differindex 5ac50a755..4a7f758a8 100644 --- a/test/mask-svg-argb32-ref.png +++ b/test/mask-svg-argb32-ref.png diff --git a/test/mask-svg-rgb24-ref.png b/test/mask-svg-rgb24-ref.png Binary files differdeleted file mode 100644 index 0bf98d901..000000000 --- a/test/mask-svg-rgb24-ref.png +++ /dev/null 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"; diff --git a/test/operator-clear-ref.png b/test/operator-clear-ref.png Binary files differindex ff7afb4d0..a3f8b7f02 100644 --- a/test/operator-clear-ref.png +++ b/test/operator-clear-ref.png diff --git a/test/operator-clear-rgb24-ref.png b/test/operator-clear-rgb24-ref.png Binary files differindex ebb02b3a8..d80da8be7 100644 --- a/test/operator-clear-rgb24-ref.png +++ b/test/operator-clear-rgb24-ref.png diff --git a/test/operator-clear.c b/test/operator-clear.c index 84123fb85..89b50e41c 100644 --- a/test/operator-clear.c +++ b/test/operator-clear.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"; diff --git a/test/operator-source-ref.png b/test/operator-source-ref.png Binary files differindex 9f1a6266a..fe59f7fba 100644 --- a/test/operator-source-ref.png +++ b/test/operator-source-ref.png diff --git a/test/operator-source-rgb24-ref.png b/test/operator-source-rgb24-ref.png Binary files differindex 41316eece..a762d60ab 100644 --- a/test/operator-source-rgb24-ref.png +++ b/test/operator-source-rgb24-ref.png diff --git a/test/operator-source.c b/test/operator-source.c index 9984ca2c9..912fec680 100644 --- a/test/operator-source.c +++ b/test/operator-source.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"; diff --git a/test/text-pattern-ref.png b/test/text-pattern-ref.png Binary files differindex 38529cfe7..ac1dd84e7 100644 --- a/test/text-pattern-ref.png +++ b/test/text-pattern-ref.png diff --git a/test/text-pattern-rgb24-ref.png b/test/text-pattern-rgb24-ref.png Binary files differindex ae87c6f4d..54b214b45 100644 --- a/test/text-pattern-rgb24-ref.png +++ b/test/text-pattern-rgb24-ref.png diff --git a/test/trap-clip-ref.png b/test/trap-clip-ref.png Binary files differindex 3ce2431d2..93302976b 100644 --- a/test/trap-clip-ref.png +++ b/test/trap-clip-ref.png diff --git a/test/trap-clip-rgb24-ref.png b/test/trap-clip-rgb24-ref.png Binary files differindex 6908ca3a5..15068aa56 100644 --- a/test/trap-clip-rgb24-ref.png +++ b/test/trap-clip-rgb24-ref.png diff --git a/test/trap-clip-svg-argb32-ref.png b/test/trap-clip-svg-argb32-ref.png Binary files differdeleted file mode 100644 index 30dfa4f48..000000000 --- a/test/trap-clip-svg-argb32-ref.png +++ /dev/null diff --git a/test/trap-clip.c b/test/trap-clip.c index e98d865d3..ba4d148e5 100644 --- a/test/trap-clip.c +++ b/test/trap-clip.c @@ -27,9 +27,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"; diff --git a/test/unbounded-operator-ref.png b/test/unbounded-operator-ref.png Binary files differindex 231019d86..03c7bc8f7 100644 --- a/test/unbounded-operator-ref.png +++ b/test/unbounded-operator-ref.png diff --git a/test/unbounded-operator-rgb24-ref.png b/test/unbounded-operator-rgb24-ref.png Binary files differindex c12d9bbaa..b2f1a84dc 100644 --- a/test/unbounded-operator-rgb24-ref.png +++ b/test/unbounded-operator-rgb24-ref.png diff --git a/test/unbounded-operator.c b/test/unbounded-operator.c index 7986c7c9c..e04ec8031 100644 --- a/test/unbounded-operator.c +++ b/test/unbounded-operator.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 static void draw_mask (cairo_t *cr, int x, int y) |