/mobile Handheld Friendly website

÷

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

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

Each chart bar shows, for one unidentified benchmark, how much the fastest Python 3 program used compared to the fastest Java 7 -server program.


Look at speed another way - look at a box plot of Time-used data.

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

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

Each table row shows, for one named benchmark, how much the fastest Python 3 program used compared to the fastest Java 7 -server program.

 Python 3 used what fraction? used how many times more? 
Benchmark Time Memory Code
 pidigits1/21/31/4
 regex-dna±1/31/3
 reverse-complement±1/2
 k-nucleotide12×1/4
 binary-trees30×±±
 fannkuch-redux38×1/31/3
 n-body46×1/3±
 fasta50×1/31/2
 spectral-norm63×1/2
 mandelbrot66×±±
 Python 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/234×50×66×66×

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

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

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

For each named benchmark, measurements of the fastest Python 3 program are shown for comparison against measurements of the fastest Java 7 -server program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 pidigits 
Python 33.033.035,540255  0% 1% 0% 100%
Java 7 -server5.445.4416,944938  0% 0% 0% 100%
 regex-dna 
Python 322.2122.23191,608424  0% 0% 0% 100%
Java 7 -server21.5821.61557,6121284  0% 0% 0% 100%
 reverse-complement 
Python 37.217.24605,268325  0% 0% 0% 100%
Java 7 -server1.871.90511,340745  1% 1% 0% 100%
 k-nucleotide 
Python 3406.91407.14849,300647  0% 0% 0% 100%
Java 7 -server33.8133.93336,3882431  0% 0% 0% 100%
 binary-trees 
Python 3469.53469.95697,064626  0% 0% 0% 100%
Java 7 -server15.6415.68506,672603  0% 0% 0% 100%
 fannkuch-redux 
Python 32,710.312,710.944,740385  0% 0% 0% 100%
Java 7 -server71.2771.2913,8561282  0% 0% 0% 100%
 n-body 
Python 31,120.271,120.514,8321181  0% 0% 0% 100%
Java 7 -server24.3224.3313,7441424  0% 0% 0% 100%
 fasta 
Python 3243.58247.004,780792  0% 0% 0% 100%
Java 7 -server4.924.9214,8281507  1% 0% 0% 100%
 spectral-norm 
Python 31,021.521,021.8426,876437  0% 0% 0% 100%
Java 7 -server16.2116.2114,860950  0% 0% 0% 100%
 mandelbrot 
Python 31,766.891,767.5476,560777  0% 0% 0% 100%
Java 7 -server26.8626.8767,760796  0% 0% 0% 100%
 fasta-redux 
No program
Java 7 -server0.110.11?1443  0% 0% 0% 100%

 Step 4 : Are there other Python 3 programs for these benchmarks?

Remember - those are just the fastest Python 3 and Java 7 -server programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Python 3.

Maybe one of those other Python 3 programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Python 3 and Java 7 -server programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 Python 3 : the new Python 

Python 3.2.3 (default, Apr 12 2012, 08:24:59)
[GCC 4.6.1] on linux2

"3.x is the newest branch of Python and the intended future of the language."

Home Page: Python 3.2 was released on February 20th, 2011.

Revised BSD license

  Home   Conclusions   License   Help