Benchmark of try/catch
bearophile
bearophileHUGS at lycos.com
Mon Mar 23 01:59:47 PDT 2009
Part of the timings, seconds:
N = 4_000_000:
C: 0.36
Java: 5.59
C++: 9.97
Psyco: 29.28
Python: 32.68
D: 48.76 SLOW=false
D: 88.45 SLOW=true
You can find it here, with C/D/Java/C++/Python code too:
http://leonardo-m.livejournal.com/78890.html
I'd like to see timing comparisons on Linux between a Java reference and LDC.
And I'd also like to know why using printf changes the situation so much.
Bye,
bearophile
More information about the Digitalmars-d
mailing list