Speed Comparison Perl Python & C

Nick Patavalis npat at efault.net
Sun Feb 29 18:58:27 CET 2004

In article <c1t89m$a3u$1 at solaris.cc.vt.edu>, Bart Nessux wrote:
> Each Program counts to 1,000,000 and prints each number to the
> console as it counts.
> What do you guys think of this? I don't know enough about Perl & C, and
> perhaps Python, to know if this was indeed a fair test. I thought C would
> do this much faster than it did. Any ideas? 

This is _not_ a meaningfull test! What you are actually measuring, is
the performance of your terminal, not the performance of the
language. Try the same, or a similar, test _without_printing_ (just
count to 1,000,000) and you'll see a huge differene!


More information about the Python-list mailing list