Ok, here we go.

How i created the project? From Lazarus Menu- Project/Project from archive

Some changes? In Project/Compiler Options/Linking...

Only Win32GUIAPP and Strip activated.

FPC ver.: 2.0.3
Lazarus ver: 0.9.16 beta
Exe Size: 188.928

Physic Memory:
Total: 521712
Availible: 192400
System Cache: 215276

Laptop Acer Aspire 1600: PIV 2,4GHZ, 512 RAM, ATI RADEON MOBILE 9000

Start Lazarus silly benchmark
Int arithmetic elapsed time: 14125 ms with max of 1000000000
 i: 1000000001
 intResult: 1
Double arithmetic elapsed time: 14547 ms with min of 10000000000, max of 11000000000
 i: 11000000000
 doubleResult: 10011632717,52295
Long arithmetic elapsed time: 19546 ms with min of 10000000000, max of 11000000000
 i: 11000000000
 longResult: -672337204
Trig elapsed time: 3891 ms with max of 10000000
 i: 10000000
 sine: 0,420547793190771
 cosine: -0,907270386181745
 tangent: -0,463530827850173
 logarithm: 7
 squareRoot: 3162,277660168379
IO elapsed time: 10203 ms with max of 1000000
 i: 1000000
 myLine: abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefgh
Total Lazarus benchmark time: 62312 ms
End Lazarus benchmark



Something are wrong..is much time.



2006/6/12, Alexandre Leclerc < [EMAIL PROTECTED]>:
Can you do the same test with lazarus? I did it (the same application
compiles without a change, but my results are not good on my pc. Maybe
the code must be optimized.

Start Lazarus silly benchmark
Int arithmetic elapsed time: 8437 ms with max of 1000000000
i: 1000000001
  intResult: 1
Double arithmetic elapsed time: 12578 ms with min of 10000000000, max
of 11000000000
i: 11000000000
  doubleResult: 10011632717,52295
Long arithmetic elapsed time: 16625 ms with min of 10000000000, max of
11000000000
i: 11000000000
  longResult: -672337204
Trig elapsed time: 3250 ms with max of 10000000
i: 10000000
sine: 0,420547793190771
cosine: -0,907270386181745
tangent: -0,463530827850173
logarithm: 7
  squareRoot: 3162,277660168379
IO elapsed time: 3891 ms with max of 1000000
i: 1000000
  myLine: abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefgh
Total Lazarus benchmark time: 44781 ms
End Lazarus benchmark

You find in attachment my project file. I also have the exe (stripped
463K) but can't send it. Lazarus/FPC are home made on 2006june08 from
svn version available at compile time (in begining of afternoon).

Regards.

2006/6/12, Lord ZealoN <[EMAIL PROTECTED]>:
> Read the last line:
>
> Update: Delphi version of the benchmark here (
> http://www.dellapasqua.com/delphibench.txt )
>
> 2006/6/12, Michael Van Canneyt <[EMAIL PROTECTED]>:
> >
> >
> > On Mon, 12 Jun 2006, Graeme Geldenhuys wrote:
> >
> > > Have a look at the following...
> > >
> > > http://www.osnews.com/story.php?news_id=5602
> > > Nine Language Performance Round-up: Benchmarking Math & File I/O
> > >
> > > It compares C#, C, C++, VB, etc...
> > > I ported the benchmark to Delphi (not tested under FPC but should be
> > > interresting) a coulpe of months back. Unfortunatily, my findings are
> > > not on this PC, but rather on my laptop at home.
> > > If memory serves me correctly, C++ and Delphi was very close together,
> > > but Delphi was slightly faster.  The port was really easy and quick to
> > > do.  I attached the original code.  I will try and find my Delphi code
> > > and findings and post them as well.
> >
> > I would be interested in seeing this :-)
> >
> > Michael.
> >
> >
> _________________________________________________________________
> >      To unsubscribe: mail [EMAIL PROTECTED] with
> >                 "unsubscribe" as the Subject
> >    archives at
> http://www.lazarus.freepascal.org/mailarchives
> >
>
>
>
>
> --
>
> ::Mi blog::
> http://blog.lordzealon.com


--
Alexandre Leclerc





--

::Mi blog::
http://blog.lordzealon.com

Reply via email to