WordCount performance
TomD
t_demmer at nospam.web.de
Thu Mar 27 02:03:32 PDT 2008
bearophile Wrote:
[...]
Seems to be a backend problem:
dmd -O wcd.d
dmc -6 wcc.c
gcc -O3 -mno-cygwin -o wccm wcc.d
On my 7.5MB iTunes XML file:
$ time ./wcd < it.xml
303412
real 0m1.078s
user 0m0.015s
sys 0m0.015s
$ time ./wcc < it.xml
303412
real 0m1.063s
user 0m0.031s
sys 0m0.000s
$ time ./wccm < it.xml
303412
real 0m0.172s
user 0m0.015s
sys 0m0.015s
Even if the usage of opt-switches is argueable (sp??) here,
it is rather a backe-end than language thing.
More information about the Digitalmars-d
mailing list