[cairo] cairo-bench

Vladimir Vukicevic vladimirv at gmail.com
Fri Mar 17 23:02:44 PST 2006


I've put together a cairo-bench benchmark program; it needs a bit more
polish, but the results have already been interesting that I figured
I'd post.  (In particular, it cut-and-pastes a bunch of code from
cairo-test.c that handles the surface creation/etc. for each surface
type -- it would be nice if this was pulled out into a separate file
in cairo itself.)  It's available via git clone at
http://www.vlad1.com/~vladimir/git/cairo-bench.git/ -- you'll probably
need to munge the Makefile to run it.

I've only got two sets of results at the moment:

http://people.mozilla.com/~vladimir/misc/xlib-results.html
 -- 1.6 GHz Pentium M, Xorg 7.0.1 (FC5 devel), nvidia 8178 driver,
RenderAccel off
http://people.mozilla.com/~vladimir/misc/mac-results.html
 -- 2 GHz Core Duo Intel iMac, using my CG-backed quartz2 surface

The X numbers have an XSync after every iteration to avoid
benchmarking network performance instead of actual rendering
performance.  There may be problems here and there in some of the
tests, as it's still very much a work in progress.

I'm going to continue working on expanding this to help me get a feel
for where the performance problems lie; there a lot of things whose
performance interests me -- text, in particular, though that will be
interesting to benchmark the right paths.  (I really want to benchmark
show_glyphs for each platform, and not the toy font API.)

    - Vlad


More information about the cairo mailing list