Performance dmd vs ldc2

Chris wendlec at tcd.ie
Mon Jul 29 03:10:13 PDT 2013


On Friday, 26 July 2013 at 05:05:54 UTC, Kagamin wrote:
> You can write a simple application, which will only parse that 
> xml file and see, how it performs.

I isolated the xml parsing and wrote a test program. It turned 
out that the xml parsing is the culprit.

The average after running it 0..10 times in a loop (if I ran it 
100 times, it wouldn't look much different):

dmd 2.063
Average time: 2233 msecs

ldc2
Average time: 10.2 msecs

I used StopWatch based on this example 
(http://dlang.org/phobos/std_datetime.html#StopWatch).

Running on Ubuntu 12.04 LTS, Intel Core i7-2760QM CPU @ 2.40GHz × 
8, 32-bit





More information about the digitalmars-d-ldc mailing list