[Lazarus] Performance of GTK 2 and CE
Ales Katona
almindor at gmail.com
Mon Nov 10 23:26:02 CET 2008
Here's my result, for your comparison (AMD Turion 64bit 1xcore, 2gb RAM, OSS
Ati driver (no 3D) with EXA on ATI Mobility Radeon X1600:
GtkPerf 0.40 - Starting testing: Mon Nov 10 23:23:01 2008
GtkEntry - time: 0,03
GtkComboBox - time: 0,63
GtkComboBoxEntry - time: 0,54
GtkSpinButton - time: 0,07
GtkProgressBar - time: 0,05
GtkToggleButton - time: 0,19
GtkCheckButton - time: 0,23
GtkRadioButton - time: 0,31
GtkTextView - Add text - time: 0,66
GtkTextView - Scroll - time: 0,23
GtkDrawingArea - Lines - time: 0,46
GtkDrawingArea - Circles - time: 0,44
GtkDrawingArea - Text - time: 1,17
GtkDrawingArea - Pixbufs - time: 0,07
---
Total time: 5,08
2008/11/10 Ales Katona <almindor at gmail.com>
> Please run "gtkperf" program on your end and give results (run it locally).
>
> If you don't have it in packages, just get libgtk2-dev and compile from
> sources (./configure && make && make install [as root]).
>
> If you get more than ~10 seconds, something is wrong with your setup
> (driver/X/theme). I get ~5s here with the OSS driver and EXA. Gtk2 flies
> quite fast.
>
> 2008/11/10 Graeme Geldenhuys <graemeg.lists at gmail.com>
>
> On Mon, Nov 10, 2008 at 7:39 PM, Mark Morgan Lloyd
>> <markMLl.lazarus at telemetry.co.uk> wrote:
>> > x86 800MHz laptop Debian "Lenny" 0.9.26/2.2.2
>> > local
>> > gtk 3.7
>> > gtk2 13.7
>> > remote
>> > gtk 10.0
>> > gtk2 60.4
>>
>>
>> Wow, even local GTK2 is *way* slower than GTK1. So I really wasn't
>> imagining it when I switch Lazarus IDE to GTK2.
>>
>> I was curious to see what it does on my system. So I created a test
>> based on what you said. I used GTK1, GTK2 and fpGUI toolkit. In all
>> three tests all component where the exact same size and contained the
>> exact same text. Here are my results from the following code:
>>
>> -----------------------------------------------
>> procedure TForm1.Button1Click(Sender: TObject);
>> var
>> i: integer;
>> s: TDateTime;
>> e: TDateTime;
>> begin
>> s := Now;
>> for i := 1 to 1000 do
>> begin
>> if (i mod 2) = 0 then
>> Panel1.Color := clRed
>> else
>> Panel1.Color := clBlue;
>> Application.ProcessMessages;
>> end;
>> e := Now - s;
>> writeln('Duration: ' + FormatDateTime('nn:ss.zz', e));
>> end;
>> -----------------------------------------------
>>
>> Clearly GTK2 is as speedy as a snail !!! :-(
>>
>>
>> graemeg at graemeg-laptop:speed$ ./project1_gtk1
>> Duration: 00:00.229
>> Duration: 00:00.219
>> Duration: 00:00.231
>> Duration: 00:00.238
>> Duration: 00:00.306
>> graemeg at graemeg-laptop:speed$ ./project1_gtk2
>> Duration: 00:01.127
>> Duration: 00:01.065
>> Duration: 00:01.158
>> Duration: 00:01.055
>> Duration: 00:01.119
>> graemeg at graemeg-laptop:speed$ ./project1_fpgui
>> Duration: 00:00.275
>> Duration: 00:00.275
>> Duration: 00:00.274
>> Duration: 00:00.276
>> Duration: 00:00.276
>>
>>
>>
>> Regards,
>> - Graeme -
>>
>>
>> _______________________________________________
>> fpGUI - a cross-platform Free Pascal GUI toolkit
>> http://opensoft.homeip.net/fpgui/
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lazarus.freepascal.org
>> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>
>
>
> --
> Feel the power of Opensource.
> Feel the power of Free Pascal.
>
--
Feel the power of Opensource.
Feel the power of Free Pascal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20081110/841e62c2/attachment-0007.html>
More information about the Lazarus
mailing list