[cairo] 1.1.6 to 1.2.0 performance

Ujjwal Dasgupta ujjwaldasgupta at gmail.com
Tue Jul 11 03:51:57 PDT 2006


Hi,

I use Cairo/GTK+ on an old linux box. I was using the development (1.1.6)
version of cairo for a while, till I switched to 1.2.0 stable. I found the
new version was noticable slower than the development version (and to a
lesser extent, version 1.0.4). I used a tool called gtkperf to benchmark the
different versions (I realise it is not the best tool for the job but
atleast it could show the difference)

GTK+ 2.10
cairo 1.1.6

GtkPerf 0.40 - Starting testing: Tue Jul 11 15:51:45 2006

GtkEntry - time:  0.82
GtkComboBox - time: 14.17
GtkComboBoxEntry - time: 11.41
GtkSpinButton - time:  2.05
GtkProgressBar - time:  1.02
GtkToggleButton - time:  4.21
GtkCheckButton - time:  3.43
GtkRadioButton - time:  4.94
GtkTextView - Add text - time: 10.29
GtkTextView - Scroll - time:  6.10
GtkDrawingArea - Lines - time:  4.10
GtkDrawingArea - Circles - time: 11.54
GtkDrawingArea - Text - time: 24.90
GtkDrawingArea - Pixbufs - time:  3.00
 ---
Total time: 102.09



GTK+ 2.10
cairo 1.2.0

GtkPerf 0.40 - Starting testing: Sat Jul  8 12:22:16 2006

GtkEntry - time:  0.99
GtkComboBox - time: 17.88
GtkComboBoxEntry - time: 15.20
GtkSpinButton - time:  3.24
GtkProgressBar - time:  1.45
GtkToggleButton - time:  4.82
GtkCheckButton - time:  4.10
GtkRadioButton - time:  5.81
GtkTextView - Add text - time: 11.59
GtkTextView - Scroll - time: 11.40
GtkDrawingArea - Lines - time:  3.71
GtkDrawingArea - Circles - time: 11.13
GtkDrawingArea - Text - time: 41.71
GtkDrawingArea - Pixbufs - time:  2.97
 ---
Total time: 136.05


Unfortunately I do not have the benchmarks for 1.0.4, but from what I
recollect, it was only slightly slower (in benchmark) than version 1.1.6.

The noticable (to the eye) lowering of performance mainly occured in text
rendering.

I just was curious to know the cause for the slightly lower performance in
the new version of cairo. Would disabling the PDF/PS/SVG backends result in
a speed improvement for 1.2.0?


Thanks a lot,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/cairo/attachments/20060711/d03368e6/attachment.html


More information about the cairo mailing list