[fpc-pascal] FPC now 3rd in shootout

Peter Vreman peter at freepascal.org
Mon Nov 5 21:31:41 CET 2007


>>
>> --- Marco van de Voort <marcov at stack.nl> wrote:
>>
>>> > http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=all
>>> >
>>> > The reason is that D's mean degraded from 1.40 to 1.43.  I wonder how
>>> > that could happen.
>>>
>>> They change often. Clean is also quite variable. I assume the differences
>>> are simply in the magnitude of the uncertainty of the measuring.
>>
>> I submitted this regex-dna program on 2007-10-31.  It's still in limbo:
>> neither accepted nor rejected.
>
> Thanks, I've added it to the fpc repository so the source will not be lost

For me the code didn't finish in a reasonable time. It spend too much time in moving ansistrings
around. I have update the program to use a pchar instead of an ansistring so it finishes within
reasonable time. The updated source can be found in:

http://svn.freepascal.org/svn/fpc/trunk/tests/bench/shootout/src/regexdna.pp

But the code is a lot slower than gcc so there is still a lot of performance tuning to do:

               100000  300000  500000
fpascal          1.169   4.581  11.754
gcc-2            1.033   3.078   5.111


Peter





More information about the fpc-pascal mailing list