/mobile Handheld Friendly website
x64 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/8 | 1/7 | |
| regex-dna | ± | 1/3 | 1/3 | |
| reverse-complement | 3× | ± | 1/2 | |
| k-nucleotide | 13× | 2× | 1/4 | |
| binary-trees | 29× | 3× | ± | |
| fannkuch-redux | 33× | 1/3 | 1/3 | |
| fasta | 38× | 1/3 | 1/2 | |
| n-body | 43× | 1/3 | ± | |
| spectral-norm | 52× | 1/3 | 1/2 | |
| mandelbrot | 81× | 2× | ± | |
| Python 3 used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | 1/2 | 1/2 | 3× | 31× | 43× | 81× | 81× |
± 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 | 2.40 | 2.41 | 7,132 | 255 | 0% 0% 0% 100% |
| Java 7 -server | 6.00 | 6.01 | 53,768 | 1826 | 1% 0% 0% 100% |
| regex-dna | |||||
| Python 3 | 22.97 | 23.00 | 206,852 | 424 | 0% 0% 0% 100% |
| Java 7 -server | 22.95 | 23.00 | 561,436 | 1284 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Python 3 | 6.12 | 6.16 | 640,304 | 325 | 1% 0% 0% 100% |
| Java 7 -server | 1.79 | 1.83 | 514,512 | 745 | 2% 1% 2% 100% |
| k-nucleotide | |||||
| Python 3 | 365.07 | 365.35 | 911,856 | 647 | 0% 0% 0% 100% |
| Java 7 -server | 29.02 | 29.10 | 521,820 | 2431 | 0% 0% 0% 100% |
| binary-trees | |||||
| Python 3 | 478.35 | 478.85 | 1,465,044 | 626 | 0% 0% 0% 100% |
| Java 7 -server | 16.44 | 16.48 | 499,416 | 603 | 0% 0% 0% 100% |
| fannkuch-redux | |||||
| Python 3 | 2,337.49 | 2,338.00 | 6,416 | 385 | 0% 0% 0% 100% |
| Java 7 -server | 69.96 | 69.99 | 17,020 | 1282 | 0% 0% 0% 100% |
| fasta | |||||
| Python 3 | 190.22 | 195.76 | 6,460 | 792 | 0% 0% 0% 100% |
| Java 7 -server | 5.18 | 5.19 | 18,044 | 1507 | 1% 0% 1% 100% |
| n-body | |||||
| Python 3 | 963.70 | 963.93 | 6,544 | 1181 | 0% 0% 0% 100% |
| Java 7 -server | 22.51 | 22.51 | 16,940 | 1424 | 0% 0% 0% 100% |
| spectral-norm | |||||
| Python 3 | 878.81 | 879.03 | 7,280 | 328 | 0% 0% 0% 100% |
| Java 7 -server | 16.99 | 17.00 | 18,244 | 514 | 0% 0% 0% 100% |
| mandelbrot | |||||
| Python 3 | 1,932.39 | 1,933.08 | 131,452 | 777 | 0% 0% 0% 100% |
| Java 7 -server | 23.74 | 23.75 | 69,696 | 796 | 0% 0% 0% 100% |
| fasta-redux | |||||
| Java 7 -server | 0.12 | 0.12 | ? | 1443 | 0% 8% 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, 07:37:17)
[GCC 4.6.1] on linux2
"3.x is the newest branch of Python and the intended future of the language."