[cairo] The short road left to 1.6

Kalle Vahlman kalle.vahlman at gmail.com
Sun Jan 27 02:16:35 PST 2008


2008/1/26, Jeff Muizelaar <jeff at infidigm.net>:
> It'd be nice to see the clipping speed up in as well:
> http://lists.freedesktop.org/archives/cairo/2007-November/012049.html

I've had that mail in my inbox as a "when you get a chance, try it
out"-todo item since you sent it. I seem to suck a lot at doing my
todo-items :/

Now I finally did do it though, and here's the head of the perf
results for xlib & image:

Speedups
========
 xlib-rgb&   text_similar_rgba_source-256  125.43 0.86% ->  78.95
54.09%:  5.35x speedup
████▍
 xlib-rgba&  zrusin_another_tessellate-415   21.07 7.94% ->   9.73
1.57%:  1.86x speedup
▉
 xlib-rgba&        text_solid_rgb_over-256   11.32 0.41% ->  11.33
21.91%:  1.73x speedup
▊
 xlib-rgba&             unaligned_clip-100    0.30 2.62% ->   0.19
4.19%:  1.59x speedup
▋
 xlib-rgba             unaligned_clip-100    0.40 31.18% ->   0.18
6.00%:  1.52x speedup
▌
 xlib-rgba&   text_similar_rgba_source-256  123.79 37.19% ->  78.54
49.35%:  1.47x speedup
▌
 xlib-rgb&             unaligned_clip-100    0.49 2.05% ->   0.35
2.70%:  1.41x speedup
▍
 xlib-rgba&      text_solid_rgb_source-256   75.67 0.93% ->  75.30
21.07%:  1.41x speedup
▍
 xlib-rgb&      text_solid_rgb_source-256   75.40 1.23% ->  75.21
23.81%:  1.39x speedup
▍
 xlib-rgb              unaligned_clip-100    0.44 3.63% ->   0.33
1.54%:  1.32x speedup
▍
image-rgba             unaligned_clip-100    0.07 3.27% ->   0.05
2.83%:  1.29x speedup
▎
image-rgb              unaligned_clip-100    0.07 1.13% ->   0.05
9.42%:  1.27x speedup
▎
(plus a long list of small speedups < 1.20x)

Slowdowns
=========
image-rgba       paint_solid_rgb_over-256    0.12 27.67% ->   0.20
3.48%:  1.94x slowdown
█
image-rgba     paint_solid_rgb_source-256    0.11 12.29% ->   0.20
1.19%:  1.91x slowdown
▉
image-rgba    paint_solid_rgba_source-256    0.10 7.75% ->   0.20
2.92%:  1.89x slowdown
▉
 xlib-rgba&     text_solid_rgba_source-256   98.98 18.16% ->  75.83
0.98%:  1.40x slowdown
▍
image-rgb     paint_solid_rgba_source-256    0.07 2.57% ->   0.10
2.20%:  1.37x slowdown
▍
image-rgb      paint_solid_rgb_source-256    0.08 2.57% ->   0.10
1.85%:  1.36x slowdown
▍
image-rgb        paint_solid_rgb_over-256    0.08 2.10% ->   0.10
6.40%:  1.31x slowdown
▎
image-rgb       pattern_create_radial-16     5.23 2.88% ->   6.26
1.65%:  1.21x slowdown
  ▎
image-rgba     text_image_rgba_source-256   13.92 1.85% ->  24.97
18.24%:  1.18x slowdown
▏
image-rgba      pattern_create_radial-16     5.59 1.61% ->   6.39
1.89%:  1.15x slowdown
▏
 xlib-rgb       pattern_create_radial-16     5.95 2.61% ->   6.78
2.19%:  1.15x slowdown
▏
 xlib-rgba      pattern_create_radial-16     5.73 1.90% ->   6.71
5.78%:  1.15x slowdown
▏
 xlib-rgb&    text_similar_rgb_source-256  124.37 39.46% -> 124.18
39.18%:  1.13x slowdown
▏
 xlib-rgb&      pattern_create_radial-16     5.73 3.26% ->   6.75
3.73%:  1.12x slowdown
▏
 xlib-rgba&              subimage_copy-256    0.30 4.80% ->   0.31
1.10%:  1.11x slowdown
▏
image-rgb               subimage_copy-128    0.01 7.99% ->   0.01
1.97%:  1.10x slowdown
▏
image-rgba paint-with-alpha_linear_rgba_over-512   24.23 0.27% ->
27.43 2.84%:  1.10x slowdown
▏
image-rgba   paint_radial_rgba_source-256    8.84 1.51% ->   9.82
2.51%:  1.09x slowdown
▏
 xlib-rgba&              tessellate-64-100    1.63 0.73% ->   1.77
2.90%:  1.08x slowdown
▏
image-rgba     paint_radial_rgba_over-256    9.43 1.08% ->  10.41
32.48%:  1.08x slowdown
▏
 xlib-rgba   paint_similar_rgb_source-512    0.76 98.97% ->   0.77
97.25%:  1.08x slowdown
▏

Ran those on nvidia binary drivers fwiw.

'make test' looks identical with master and patched for me (tested
image backend only):

Failed tests:
     a1-image-sample: image
     a1-traps-sample: image
     rectangle-rounding-error: image
     rotate-image-surface-paint: image
     unantialiased-shapes: image
     bitmap-font: image
     ft-text-vertical-layout-type1: image
     ft-text-vertical-layout-type3: image

I don't know what the slowdowns are about, but at least the speedups
look good :)

-- 
Kalle Vahlman, zuh at iki.fi
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi


More information about the cairo mailing list