Surprising (for me) benchmark results...

William Park parkw at better.net
Tue May 1 17:43:11 EDT 2001


On Tue, May 01, 2001 at 09:14:41PM +0000, E. Mark Ping wrote:
> Over on the comp.lang.c++ newsgroup (crossposted to the comp.lang.java
> group) there was a challenge to read in a large file, sort the lines
> lexigraphically, and write them out to a file.
> 
> The argument was that Java was faster than C++.  It turned out that it
> was faster, because my implementation of C++ had an available patch
> that I hadn't applied.  Anyway, the reults for sorting a 30K line file
> (about 4.3MB) were:
> 
> Java: ~1500 ms
> C++:  ~950 ms
> Perl: ~1000 ms
...
> Python runtime:  600 ms

Did the time for Java/C++/Perl include only for sorting as for Python
case, or for the entire process run (ie. time sh -c '...')?

--William Park, Open Geometry Consulting, Mississauga, Ontario, Canada.
  8 CPUs, Linux, python, LaTeX, vim, mutt




More information about the Python-list mailing list