Java > Scala
Marco Leise
Marco.Leise at gmx.de
Fri Dec 2 00:52:37 PST 2011
Am 02.12.2011, 06:17 Uhr, schrieb David Eagen
<spam_me_here at mailinator.com>:
I did a test run with 430 MB of the two sample lines you gave in the last
post and got even worse results where Java is 6.8x faster than D.
Code: Your original program
DMD : 2.054 64-bit
Java: IcedTea JDK (6)
A profile run without inlining using OProfile revealed statistics that
come down to this (roughly):
1/10 reading the file by line
1/ 3 of the time is spend appending to arrays
1/ 2 is the regex
More information about the Digitalmars-d
mailing list