Measuring performance of GTK theme

By Pratik Shivarkar | Labels: , , ,

Does GTK theme make any noticeable change in performance? Yes. as I have mentioned in previous post - Top 10 Gnome Performance Tweaks, Here is a way to figure out how much does it matter. If you are interested in creating GTK themes you should know how to check performance of theme..

I’m going to check performance of three completely different themes.

Mira, Mist, and Wasp

You will need GTK-Perf utility.

To install it on Ubuntu, use following command.

sudo apt-get install gtkperf

GtkPerf

Run the utility and see the results, Lower is better.

1. Mira

Mira

Result: 10.96 Seconds

GtkEntry - time:  0.14
GtkComboBox - time: 3.28
GtkComboBoxEntry - time: 2.72
GtkSpinButton - time: 0.53
GtkProgressBar - time: 0.21
GtkToggleButton - time: 0.56
GtkCheckButton - time: 0.26
GtkRadioButton - time: 0.36
GtkTextView - Add text - time: 0.77
GtkTextView - Scroll - time: 0.29
GtkDrawingArea - Lines - time: 0.48
GtkDrawingArea - Circles - time: 0.65
GtkDrawingArea - Text - time: 0.60
GtkDrawingArea - Pixbufs - time: 0.09
---
Total time: 10.96

 

2. Wasp

Wasp

Result: 7.72 Seconds

GtkEntry - time:  0.21
GtkComboBox - time: 2.07
GtkComboBoxEntry - time: 1.45
GtkSpinButton - time: 0.23
GtkProgressBar - time: 0.09
GtkToggleButton - time: 0.34
GtkCheckButton - time: 0.27
GtkRadioButton - time: 0.38
GtkTextView - Add text - time: 0.63
GtkTextView - Scroll - time: 0.26
GtkDrawingArea - Lines - time: 0.39
GtkDrawingArea - Circles - time: 0.64
GtkDrawingArea - Text - time: 0.65
GtkDrawingArea - Pixbufs - time: 0.09
---
Total time: 7.72

3. Mist

Mist

Result: 6.17 Seconds

GtkEntry - time:  0.13
GtkComboBox - time: 1.42
GtkComboBoxEntry - time: 1.13
GtkSpinButton - time: 0.08
GtkProgressBar - time: 0.06
GtkToggleButton - time: 0.28
GtkCheckButton - time: 0.19
GtkRadioButton - time: 0.41
GtkTextView - Add text - time: 0.64
GtkTextView - Scroll - time: 0.12
GtkDrawingArea - Lines - time: 0.36
GtkDrawingArea - Circles - time: 0.67
GtkDrawingArea - Text - time: 0.57
GtkDrawingArea - Pixbufs - time: 0.09
---
Total time: 6.17

-- “Ultimately you will find that simple themes are twice faster than high detailed themes.. This wont matter much if you got a healthy machine, But if you are running on older machine with poor or onboard graphics card, that too with bigger resolutions. GTK themes will make a big difference.”

blog comments powered by Disqus

.

Your Ad Here