A million string interpolations and file accesses in 2.1 s - not bad.
Hmm, maybe the startup overhead of python is still significant with 1,000,000 iterations so here are 10,000,000 timings:
[EMAIL PROTECTED]:~/src/benchmark$ time perl -e 'for ($i=1;$i<=10000000;$i++) {print "$i: hello world\n";}' >/dev/null
real 0m21.400s user 0m21.130s sys 0m0.030s
[EMAIL PROTECTED]:~/src/benchmark$ time ./10Mhello >/dev/null
real 0m9.932s user 0m9.760s sys 0m0.020s
-- Webspace; Low end Serverhousing ab 15 e, etc.: http://www.bksys.at Linux Admin/Programmierer: http://bksys.at/bernhard/services.html
_______________________________________________ Mailman-Developers mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-developers