/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/3
 reverse-complement1/5
 binary-trees15×1/2
 k-nucleotide15×1/4
 fasta39×1/31/2
 n-body41×1/3±
 spectral-norm51×1/2
 fannkuch-redux65×1/2
 mandelbrot78×1/8±
 Python 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/227×51×78×78×

± 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 32.312.327,012255  0% 0% 100% 1%
Java 7 -server10.614.4363,1561826  71% 69% 52% 45%
 regex-dna 
Python 324.9212.65497,816478  88% 40% 30% 40%
Java 7 -server23.366.63636,9241410  92% 87% 88% 86%
 reverse-complement 
Python 36.106.13642,680325  0% 0% 100% 0%
Java 7 -server2.741.31298,2201661  45% 54% 37% 79%
 binary-trees 
Python 3520.99138.821,465,024626  92% 99% 94% 92%
Java 7 -server22.869.41516,1441007  83% 41% 64% 57%
 k-nucleotide 
Python 3369.49122.44910,320647  60% 80% 66% 96%
Java 7 -server29.238.03463,5162431  90% 98% 89% 89%
 fasta 
Python 3192.99197.816,460792  0% 53% 40% 6%
Java 7 -server5.225.1418,1761507  0% 100% 1% 1%
 n-body 
Python 3913.96914.236,5241181  0% 0% 100% 0%
Java 7 -server22.5222.5016,9201424  0% 100% 0% 0%
 spectral-norm 
Python 3893.21227.4739,228437  99% 99% 98% 97%
Java 7 -server17.624.5017,716950  98% 99% 98% 98%
 fannkuch-redux 
Python 33,473.29881.7635,372797  98% 99% 99% 98%
Java 7 -server53.1913.4717,4161282  98% 100% 98% 100%
 mandelbrot 
Python 31,889.22473.989,184777  100% 100% 100% 100%
Java 7 -server23.976.1069,360796  98% 99% 98% 98%
 fasta-redux 
No program
Java 7 -server0.130.11?1443  0% 92% 9% 11%

 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, 07:37:17)
[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