/mobile Handheld Friendly website
Ubuntu : Intel® Q6600® quad-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/9 | 1/7 | |
| regex-dna | ± | ± | 1/2 | |
| reverse-complement | 5× | 2× | 1/5 | |
| binary-trees | 13× | ± | 1/2 | |
| k-nucleotide | 14× | 2× | 1/4 | |
| n-body | 45× | 1/3 | ± | |
| fasta | 51× | 1/3 | 1/2 | |
| spectral-norm | 61× | 2× | 1/2 | |
| fannkuch-redux | 63× | 2× | 1/2 | |
| mandelbrot | 64× | 1/10 | ± | |
| Python 3 used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | 1/2 | 1/2 | 5× | 29× | 61× | 64× | 64× |
± 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.04 | 5,544 | 255 | 0% 0% 100% 1% |
| Java 7 -server | 12.36 | 5.16 | 47,348 | 1826 | 60% 61% 61% 54% |
| regex-dna | |||||
| Python 3 | 23.92 | 12.42 | 494,332 | 478 | 28% 29% 37% 99% |
| Java 7 -server | 28.92 | 10.07 | 708,180 | 929 | 65% 64% 83% 76% |
| reverse-complement | |||||
| Python 3 | 7.09 | 7.12 | 601,036 | 325 | 0% 0% 0% 100% |
| Java 7 -server | 2.88 | 1.52 | 294,656 | 1661 | 56% 74% 46% 16% |
| binary-trees | |||||
| Python 3 | 483.82 | 128.79 | 697,028 | 626 | 94% 92% 92% 98% |
| Java 7 -server | 23.89 | 9.78 | 532,932 | 1007 | 61% 77% 45% 63% |
| k-nucleotide | |||||
| Python 3 | 401.32 | 134.08 | 849,300 | 647 | 97% 60% 84% 59% |
| Java 7 -server | 34.65 | 9.39 | 381,176 | 2431 | 92% 89% 97% 92% |
| n-body | |||||
| Python 3 | 1,083.45 | 1,083.68 | 4,832 | 1181 | 0% 0% 100% 0% |
| Java 7 -server | 24.37 | 24.34 | 13,932 | 1424 | 0% 0% 0% 100% |
| fasta | |||||
| Python 3 | 243.04 | 246.47 | 4,784 | 792 | 51% 13% 5% 32% |
| Java 7 -server | 4.95 | 4.86 | 14,976 | 1507 | 1% 0% 100% 1% |
| spectral-norm | |||||
| Python 3 | 1,018.42 | 257.60 | 26,856 | 437 | 99% 99% 99% 99% |
| Java 7 -server | 16.38 | 4.21 | 14,556 | 950 | 97% 97% 99% 98% |
| fannkuch-redux | |||||
| Python 3 | 4,264.37 | 1,071.19 | 24,800 | 797 | 100% 100% 100% 99% |
| Java 7 -server | 67.73 | 17.13 | 14,208 | 1282 | 98% 99% 99% 100% |
| mandelbrot | |||||
| Python 3 | 1,748.49 | 438.30 | 6,468 | 777 | 100% 100% 100% 100% |
| Java 7 -server | 27.15 | 6.89 | 67,832 | 796 | 98% 99% 99% 99% |
| fasta-redux | |||||
| Java 7 -server | 0.13 | 0.11 | ? | 1443 | 9% 18% 10% 90% |
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."