[cairo] [RFC] Extend cairo-perf traces to cover new pixman-0.18.0 optimizations

Siarhei Siamashka siarhei.siamashka at gmail.com
Thu Apr 1 10:20:55 PDT 2010


Hello,

Here are two traces which showcase some of the new pixman 0.18.0
optimizations. AFAIK they are not yet covered by the other tests.
I wonder if these traces could be included in the standard cairo test
set?

1. Start xfce4 terminal (with terminus font), run "man gcc", scroll all the
text from top to bottom:
http://people.freedesktop.org/~siamashka/files/20100401/cairo-traces/terminal-a1.trace

2. Open http://www.jakob-persson.com/styles_demo/?s=5 page (a free phpbb
template "Chronicles") in midori browser, zoom-in, scroll the page up and down
repeatedly:
http://people.freedesktop.org/~siamashka/files/20100401/cairo-traces/midori-zoomed-phpbb.trace

Benchmark from Intel Core2 64-bit:

=== pixman 0.16.6 ===
[ # ]  backend                         test   min(s) median(s) stddev. count
[  0]    image                  terminal-a1    9.702    9.737   0.15%    6/6
[  1]    image          midori-zoomed-phpbb   12.526   12.529   0.05%    5/6

=== pixman 0.18.0 ===
[ # ]  backend                         test   min(s) median(s) stddev. count
[  0]    image                  terminal-a1    3.972    3.972   0.00%    5/6
[  1]    image          midori-zoomed-phpbb    4.406    4.414   0.08%    5/6

Oprofile logs:

terminal-a1:
samples  %        image name               symbol name
114239   47.5137  libpixman-1.so.0.18.0    fast_composite_over_n_1_8888
50713    21.0923  libpixman-1.so.0.18.0    fast_composite_add_1000_1000
11174     4.6474  libc-2.10.1.so           memset
8753      3.6405  libpixman-1.so.0.18.0    pixman_fill_sse2
6438      2.6777  libpixman-1.so.0.18.0    pixman_image_composite32
6237      2.5941  libcairo-script-interpreter.so.2.10905.0 csi_file_getc
5072      2.1095  libcairo-script-interpreter.so.2.10905.0 _scan_file
4367      1.8163  libcairo-script-interpreter.so.2.10905.0 
_csi_hash_table_lookup
3838      1.5963  libcairo.so.2.10905.0    _cairo_hash_table_lookup
1456      0.6056  libpixman-1.so.0.18.0    pixman_compute_composite_region32

midori-zoomed-phpbb:
samples  %        image name               symbol name
105230   35.6904  libpixman-1.so.0.18.0    
fast_composite_scaled_nearest_x888_x888_normal_OVER
52308    17.7411  libc-2.10.1.so           memset
49511    16.7924  libpixman-1.so.0.18.0    pixman_fill_sse2
24582     8.3374  libpixman-1.so.0.18.0    fast_composite_scaled_nearest
9549      3.2387  libcairo-script-interpreter.so.2.10905.0 csi_file_getc
6483      2.1988  libcairo-script-interpreter.so.2.10905.0 _scan_file
5268      1.7867  libpixman-1.so.0.18.0    sse2_composite_over_n_8_8888
5201      1.7640  libcairo-script-interpreter.so.2.10905.0 
_csi_hash_table_lookup
4325      1.4669  libfontconfig.so.1.4.4   __popcountdi2
2891      0.9805  no-vmlinux               /no-vmlinux
1714      0.5813  libfontconfig.so.1.4.4   FcCompareValueList


I actually initially wanted to use firefox 3.5 instead of midory, but it
produces the following weird trace:

samples  %        image name               symbol name
132338   27.0649  libc-2.10.1.so           memset
119085   24.3545  libz.so.1.2.3            /lib64/libz.so.1.2.3
69132    14.1384  libc-2.10.1.so           memcpy
32232     6.5919  libpixman-1.so.0.18.0    pixman_blt_sse2
29607     6.0550  libpixman-1.so.0.18.0    
fast_composite_scaled_nearest_x888_x888_none_SRC
25837     5.2840  no-vmlinux               /no-vmlinux
22999     4.7036  libcairo-script-interpreter.so.2.10905.0 
_image_load_from_dictionary
6602      1.3502  libpixman-1.so.0.18.0    pixman_fill_sse2
6156      1.2590  libcairo-script-interpreter.so.2.10905.0 csi_file_getc
6060      1.2393  libcairo-script-interpreter.so.2.10905.0 
_csi_hash_table_lookup
5153      1.0539  libpixman-1.so.0.18.0    fast_composite_scaled_nearest
4852      0.9923  libcairo-script-interpreter.so.2.10905.0 _scan_file
3566      0.7293  libpixman-1.so.0.18.0    
fast_composite_scaled_nearest_x888_x888_none_OVER
2507      0.5127  libpixman-1.so.0.18.0    sse2_composite_over_n_8_8888

-- 
Best regards,
Siarhei Siamashka


More information about the cairo mailing list