/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/91/7
 regex-dna±±1/2
 reverse-complement1/5
 binary-trees13×±1/2
 k-nucleotide14×1/4
 n-body45×1/3±
 fasta51×1/31/2
 spectral-norm61×1/2
 fannkuch-redux63×1/2
 mandelbrot64×1/10±
 Python 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/229×61×64×64×

± 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.045,544255  0% 0% 100% 1%
Java 7 -server12.365.1647,3481826  60% 61% 61% 54%
 regex-dna 
Python 323.9212.42494,332478  28% 29% 37% 99%
Java 7 -server28.9210.07708,180929  65% 64% 83% 76%
 reverse-complement 
Python 37.097.12601,036325  0% 0% 0% 100%
Java 7 -server2.881.52294,6561661  56% 74% 46% 16%
 binary-trees 
Python 3483.82128.79697,028626  94% 92% 92% 98%
Java 7 -server23.899.78532,9321007  61% 77% 45% 63%
 k-nucleotide 
Python 3401.32134.08849,300647  97% 60% 84% 59%
Java 7 -server34.659.39381,1762431  92% 89% 97% 92%
 n-body 
Python 31,083.451,083.684,8321181  0% 0% 100% 0%
Java 7 -server24.3724.3413,9321424  0% 0% 0% 100%
 fasta 
Python 3243.04246.474,784792  51% 13% 5% 32%
Java 7 -server4.954.8614,9761507  1% 0% 100% 1%
 spectral-norm 
Python 31,018.42257.6026,856437  99% 99% 99% 99%
Java 7 -server16.384.2114,556950  97% 97% 99% 98%
 fannkuch-redux 
Python 34,264.371,071.1924,800797  100% 100% 100% 99%
Java 7 -server67.7317.1314,2081282  98% 99% 99% 100%
 mandelbrot 
Python 31,748.49438.306,468777  100% 100% 100% 100%
Java 7 -server27.156.8967,832796  98% 99% 99% 99%
 fasta-redux 
No program
Java 7 -server0.130.11?1443  9% 18% 10% 90%

 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