Benchmark of try/catch

Sergey Gromov snake.scaly at gmail.com
Mon Mar 23 15:36:10 PDT 2009


Mon, 23 Mar 2009 17:11:56 -0400, bearophile wrote:

> bearophile:
>> N = 1_000_000_000:
>>   C++: 0.06 s
>>   D:   5.10 s
> 
> I think GCC compiles most things away, so the run time is constant.

Yes, I think it detected there was no side effects and eliminated the
whole loop.  That's why my original benchmark was in two modules.



More information about the Digitalmars-d mailing list