÷

 Step 1 : Are the Python CPython programs faster? At a glance.

This chart shows 3 comparisons - Time-used, Memory-used and Code-used.

Each chart bar shows, for one unidentified benchmark, how much the fastest Python CPython program used compared to the fastest Perl program.


 Step 2 : Are the Python CPython programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used.

Each table row shows, for one named benchmark, how much the fastest Python CPython program used compared to the fastest Perl program.

 Python CPython used what fraction? used how many times more? 
Benchmark Time Memory Code Reduced N
 mandelbrot1/2±
 binary-trees1/2±±
 fasta±±±
 n-body±±±
 regex-dna±±1/2
 spectral-norm±1/21/2
 pidigits±±
 reverse-complement±±
 fannkuch±±
 k-nucleotide1/2±

± read the measurements and then read the program source code.

 Step 3 : Are the Python CPython programs faster? Measurements.

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.

For each named benchmark, measurements of the fastest Python CPython program are shown for comparison against measurements of the fastest Perl program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 mandelbrot 
Python CPython3,103.643,103.4518,844425  0% 0% 0% 100%
Perl5,268.135,267.813,032311  0% 0% 0% 100%
 binary-trees 
Python CPython818.45818.40674,580626  0% 0% 0% 100%
Perl1,297.731,297.68643,488541  0% 0% 0% 100%
 fasta 
Python CPython235.18235.252,856779  1% 1% 0% 100%
Perl349.59349.572,112934  0% 1% 0% 100%
 n-body 
Python CPython1,416.101,416.022,9401105  0% 0% 0% 100%
Perl1,911.921,911.802,1281140  0% 0% 0% 100%
 regex-dna 
Python CPython29.2229.22191,168342  0% 0% 0% 100%
Perl38.8438.84153,472527  0% 0% 0% 100%
 spectral-norm 
Python CPython1,172.481,172.403,380378  0% 0% 0% 100%
Perl1,184.331,184.267,792846  0% 0% 0% 100%
 pidigits 
Python CPython7.407.405,528476  0% 0% 0% 100%
Perl7.047.053,284385  0% 0% 0% 100%
 reverse-complement 
Python CPython7.557.55503,668288  0% 0% 0% 100%
Perl5.805.80124,036237  0% 0% 1% 100%
 fannkuch 
Python CPython4,311.654,311.442,812387  0% 0% 0% 100%
Perl3,160.503,160.311,692391  0% 0% 0% 100%
 k-nucleotide 
Python CPython424.35425.39439,968520  0% 0% 0% 100%
Perl249.61252.46709,264359  0% 0% 0% 100%
 chameneos-redux 
Python CPython144.97145.063,016869  0% 0% 0% 100%
No Perl

 Measurements for all the accepted programs

 Python CPython : uncluttered imperative programming plus objects 

Python 2.6.3

Online book: Dive Into Python

Home Page: http://www.python.org/

Download: http://www.python.org/download/

Revised BSD license