/mobile Handheld Friendly website
Ubuntu : Intel® Q6600® one core |
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.
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 | |
| pidigits | 1/2 | 1/3 | 1/4 | |
| regex-dna | ± | 1/3 | 1/3 | |
| reverse-complement | 4× | ± | 1/2 | |
| k-nucleotide | 12× | 3× | 1/4 | |
| binary-trees | 30× | ± | ± | |
| fannkuch-redux | 38× | 1/3 | 1/3 | |
| n-body | 46× | 1/3 | ± | |
| fasta | 50× | 1/3 | 1/2 | |
| spectral-norm | 63× | 2× | 1/2 | |
| mandelbrot | 66× | ± | ± | |
| Python 3 used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | 1/2 | 1/2 | 4× | 34× | 50× | 66× | 66× |
± read the measurements and then read the program source code.
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 3 | 3.03 | 3.03 | 5,540 | 255 | 0% 1% 0% 100% |
| Java 7 -server | 5.44 | 5.44 | 16,944 | 938 | 0% 0% 0% 100% |
| regex-dna | |||||
| Python 3 | 22.21 | 22.23 | 191,608 | 424 | 0% 0% 0% 100% |
| Java 7 -server | 21.58 | 21.61 | 557,612 | 1284 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Python 3 | 7.21 | 7.24 | 605,268 | 325 | 0% 0% 0% 100% |
| Java 7 -server | 1.87 | 1.90 | 511,340 | 745 | 1% 1% 0% 100% |
| k-nucleotide | |||||
| Python 3 | 406.91 | 407.14 | 849,300 | 647 | 0% 0% 0% 100% |
| Java 7 -server | 33.81 | 33.93 | 336,388 | 2431 | 0% 0% 0% 100% |
| binary-trees | |||||
| Python 3 | 469.53 | 469.95 | 697,064 | 626 | 0% 0% 0% 100% |
| Java 7 -server | 15.64 | 15.68 | 506,672 | 603 | 0% 0% 0% 100% |
| fannkuch-redux | |||||
| Python 3 | 2,710.31 | 2,710.94 | 4,740 | 385 | 0% 0% 0% 100% |
| Java 7 -server | 71.27 | 71.29 | 13,856 | 1282 | 0% 0% 0% 100% |
| n-body | |||||
| Python 3 | 1,120.27 | 1,120.51 | 4,832 | 1181 | 0% 0% 0% 100% |
| Java 7 -server | 24.32 | 24.33 | 13,744 | 1424 | 0% 0% 0% 100% |
| fasta | |||||
| Python 3 | 243.58 | 247.00 | 4,780 | 792 | 0% 0% 0% 100% |
| Java 7 -server | 4.92 | 4.92 | 14,828 | 1507 | 1% 0% 0% 100% |
| spectral-norm | |||||
| Python 3 | 1,021.52 | 1,021.84 | 26,876 | 437 | 0% 0% 0% 100% |
| Java 7 -server | 16.21 | 16.21 | 14,860 | 950 | 0% 0% 0% 100% |
| mandelbrot | |||||
| Python 3 | 1,766.89 | 1,767.54 | 76,560 | 777 | 0% 0% 0% 100% |
| Java 7 -server | 26.86 | 26.87 | 67,760 | 796 | 0% 0% 0% 100% |
| fasta-redux | |||||
| Java 7 -server | 0.11 | 0.11 | ? | 1443 | 0% 0% 0% 100% |
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.
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.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."