[fpc-devel] performance tests: reference counted vs non-reference counted

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Nov 16 12:04:07 CET 2007


On Fri, 16 Nov 2007 12:50:00 +0200
"Graeme Geldenhuys" <graemeg.lists at gmail.com> wrote:

>[...]
> ***** FPC 2.2.0 under Linux (Ubuntu 7.10)
> graemeg at graemeg:Demo$ ./performancetest
> 2029 iterations in 5 seconds (no reference counting)
> 3185 iterations in 5 seconds (reference counting)
> 2469 iterations in 5 seconds (no reference counting with MyBaseObject)
> 935 iterations in 5 seconds (reference counting with MyBaseObject)
>[...]
> ***** FPC 2.2.0 under Linux (Ubuntu 7.10)
> graemeg at graemeg:Demo_TtiBaseObject$ ./performancetest
> 2048 iterations in 5 seconds (no reference counting with MyBaseObject)
> 1874 iterations in 5 seconds (no reference counting)
> 2877 iterations in 5 seconds (reference counting)
> 566 iterations in 5 seconds (reference counting with MyBaseObject)

Why are the iteration differences that big? 566 vs 935? 
There seems to be a problem with how you test/measure.


Mattias



More information about the fpc-devel mailing list