[Gambas-devel] About gb.gsl components
Benoît Minisini
gambas at ...1...
Sun Jul 8 23:29:28 CEST 2012
Le 08/07/2012 23:25, Emil Lenngren a écrit :
> Ok. First I start a new Gambas Console project. MMain.module contains this:
> ' Gambas module file
>
> Public Sub Main()
> Dim i As Integer = 1
> While i <= 80000000
> Inc i
> Wend
> End
>
> Then I open a terminal and go to the project directory:
>
> emil at ...700...:~/Programmering/Gambas/DebugTest$ gbc3 -a -g
> OK
> emil at ...700...:~/Programmering/Gambas/DebugTest$ time gbx3
>
> real 0m3.396s
> user 0m3.391s
> sys 0m0.002s
> emil at ...700...:~/Programmering/Gambas/DebugTest$ gbc3 -a
> OK
> emil at ...700...:~/Programmering/Gambas/DebugTest$ time gbx3
>
> real 0m5.599s
> user 0m5.592s
> sys 0m0.002s
>
> The debug version is faster than the non-debug version...
>
> /Emil
>
>
I have the contrary (4.18s & 3.62s)... Very strange! You should use
valgrind and kcachegrind to find where things are longer in the second case.
--
Benoît Minisini
More information about the Devel
mailing list