archie at whistle.com
Mon Nov 16 17:45:13 PST 1998
Jose de Oliveira Guimaraes writes:
> 100.000 1.000.000 10.000.000
> times times times
> ; 0.80 1.00 1.90
> m1 0.87 1.12 3.93
> m2 0.96 1.60 8.34
> To execute m1 100.000 times, it takes 0.87 - 0.80 = 0.07 seconds. To execute
> it 1 million times, it takes 1.00 - 1.12 = 0.12 s. To execute it 10 million
> times, it takes 3.93 - 1.90 = 2.03. Each figure should be 10 times greater
> than the previous one. But that never happens. We have made dozens and
> dozens of tests and we always get this strange behavior. Note also that
> to execute the null statement 1 million times takes only 25% more time
> than to execute it 1/10 million times.
> Can someone tell us what is happening ? We would thank !
Your data is linear... it's just not going through (0, 0).
That is, you are not accounting for the fixed startup cost
that is "charged" once and the same no matter how many
iterations you do -- mostly due to the JIT phase I would guess.
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
More information about the kaffe