[Gambas-devel] About gb.gsl components

Emil Lenngren emil.lenngren at ...176...
Sun Jul 8 23:25:17 CEST 2012


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


2012/7/8 Benoît Minisini <gambas at ...1...>

> Le 08/07/2012 23:12, Benoît Minisini a écrit :
> > Le 08/07/2012 23:07, Emil Lenngren a écrit :
> >> Maybe..
> >>
> >> I think it is very strange that interpreted functions with debugging
> >> flags sometimes are faster than without...
> >>
> >> This code:
> >>    Dim i As Integer = 1
> >>    While i <= 80000000
> >>      Inc i
> >>    Wend
> >>
> >> Takes 3.48 seconds with debugging flags, and 5.66 seconds without :/
> >> I think it should be the opposite.
> >>
> >> /Emil
> >>
> >
> > So do I!
> >
>
> Well, I cannot reproduce what you are talking about. Can you be more
> precise about what you do exactly?
>
> --
> Benoît Minisini
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20120708/01488a86/attachment.html>


More information about the Devel mailing list