Nick Lawson wrote:

>
> The times for this (Pentium 166, Sun Windows 95 JDK 1.2, Blackdown 1.2pre-v2
> + glibc 2.1 + OpenLinux 2.2,
> 500,000,000 iterations):
>
>           VM:       kaffe    Sun        Sun    Blackdown    Blackdown
>           JIT:               symcjit    none   sunwjit        none
>                     -----    -------    ----   ---------    ----------
> With try/catch    388,212    12,360    545,410    136,207    466,300
> Without           396,401    15,490    601,000    143,784    508,770
>
> %faster                2%        20%      9.2%       5.2%      8.3%
>
> - the last column is estimated from 50,000,000 iterations.

My results for 50M iterations in a
PII-350/RH5.2/2.2.9/J12-pre2-glibc2.0/tya1.4:
First loop (try): 11136
Second loop (no try): 11603
(This is an average of 10 runs)

It seems that there is a real performance increase (4-5%) when using exception
handling correctly...
In my experience this is the general situation with correct use of exception
handling: The code is cleaner and runs faster ;-}

-- dimitris


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to