Each chart bar shows, for one unidentified benchmark, how much the fastest Jython program used compared to the fastest Python 3 program.
(Memory use is only compared for tasks that require memory to be allocated.)
These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.
Each table row shows, for one named benchmark, how much the fastest Jython program used compared to the fastest Python 3 program.
(Memory use is only compared for tasks that require memory to be allocated.)
Jython used what fraction? used how many times more? | ||||
---|---|---|---|---|
Benchmark | Time | Memory | Code | |
n-body | 2× | ± | ||
meteor-contest † | 3× | ± | ||
fib50 † | 4× | ± | ||
richards † | 6× | ± | ||
jsonbench † | 8× | ± | ||
fasta | 8× | 1/2 | ||
thread-ring † | 10× | ± | ||
pystone † | 24× | ? | ± | |
k-nucleotide | 35× | ? | ± | |
spectral-norm † | 50× | ? | 2× | |
regex-dna | 62× | ? | ± | |
reverse-complement | 84× | ? | ± | |
iobench | 89× | ± | ||
pidigits | 230× | ? | ± |
Jython used what fraction? used how many times more? | |||||||
---|---|---|---|---|---|---|---|
Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
(Elapsed secs) | 2× | 2× | 6× | 17× | 62× | 145× | 230× |
† possible mismatch - one-core program compared to multi-core program.
± read the measurements and then read the program source code.
These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.
For each named benchmark, measurements of the fastest Jython program are shown for comparison against measurements of the fastest Python 3 program.
Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
---|---|---|---|---|---|
n-body | |||||
Jython | 47.89 | 42.47 | 3,380 | 1337 | 13% 32% 42% 14% 3% 4% 2% 4% |
Python 3 | 20.69 | 20.70 | 10,584 | 1315 | 1% 0% 0% 0% 0% 100% 0% 1% |
meteor-contest | |||||
Jython | 9.64 | 5.51 | 3,432 | 1485 | 58% 22% 17% 13% 14% 12% 24% 17% † |
Python 3 | 1.70 | 1.70 | 10,964 | 1443 | 1% 1% 1% 0% 0% 0% 0% 99% † |
fib50 | |||||
Jython | 11.08 | 6.91 | 3,592 | 130 | 17% 14% 11% 5% 44% 24% 21% 25% † |
Python 3 | 1.63 | 1.64 | 10,196 | 136 | 100% 1% 2% 1% 1% 0% 0% 1% † |
richards | |||||
Jython | 7.01 | 3.06 | 3,380 | 2423 | 18% 41% 29% 35% 21% 29% 29% 33% † |
Python 3 | 0.49 | 0.49 | 11,092 | 2434 | 2% 4% 0% 2% 2% 100% 0% 0% † |
jsonbench | |||||
Jython | 23.44 | 15.07 | 3,592 | 322 | 34% 25% 14% 9% 17% 20% 19% 19% † |
Python 3 | 2.00 | 2.00 | 13,956 | 322 | 2% 0% 1% 100% 0% 1% 1% 2% † |
fasta | |||||
Jython | 25.50 | 20.97 | 3,540 | 900 | 28% 13% 13% 12% 22% 32% 1% 2% |
Python 3 | 4.91 | 2.71 | 65,720 | 2016 | 44% 38% 4% 3% 60% 0% 26% 12% |
thread-ring | |||||
Jython | 5.84 | 2.66 | 3,476 | 407 | 54% 23% 34% 24% 32% 24% 15% 20% † |
Python 3 | 0.28 | 0.28 | 1,920 | 406 | 100% 7% 0% 0% 4% 0% 0% 3% † |
pystone | |||||
Jython | 7.20 | 2.84 | 3,548 | 2301 | 22% 34% 21% 79% 32% 23% 18% 28% † |
Python 3 | 0.11 | 0.12 | ? | 2300 | 100% 8% 0% 0% 0% 0% 0% 0% † |
k-nucleotide | |||||
Jython | 4.89 | 2.15 | 3,448 | 593 | 34% 52% 20% 30% 23% 31% 21% 16% |
Python 3 | 0.08 | 0.06 | ? | 801 | 57% 50% 14% 0% 25% 17% 29% 17% |
spectral-norm | |||||
Jython | 8.79 | 5.59 | 3,540 | 594 | 23% 31% 26% 41% 10% 8% 8% 11% † |
Python 3 | 0.11 | 0.11 | ? | 394 | 100% 0% 0% 0% 0% 0% 8% 0% † |
regex-dna | |||||
Jython | 5.59 | 2.47 | 3,484 | 501 | 36% 22% 30% 40% 31% 31% 24% 14% |
Python 3 | 0.04 | 0.04 | ? | 524 | 0% 100% 0% 0% 25% 0% 0% 20% |
reverse-complement | |||||
Jython | 4.28 | 1.94 | 3,360 | 431 | 19% 35% 30% 31% 62% 10% 26% 13% |
Python 3 | 0.02 | 0.02 | ? | 458 | 33% 0% 100% 0% 0% 0% 0% 0% |
iobench | |||||
Jython | 286.89 | 270.09 | 3,620 | 370 | 19% 26% 30% 27% 1% 1% 1% 1% |
Python 3 | 2.99 | 3.03 | 10,512 | 367 | 1% 2% 0% 0% 100% 0% 0% 1% |
pidigits | |||||
Jython | 10.77 | 6.45 | 3,588 | 322 | 18% 30% 55% 20% 13% 7% 13% 12% |
Python 3 | 0.03 | 0.03 | ? | 379 | 25% 0% 100% 0% 0% 0% 33% 25% |
fannkuch-redux | |||||
Python 3 | 4.72 | 0.65 | 99,300 | 894 | 91% 97% 91% 91% 85% 92% 91% 93% |
fasta-redux | |||||
Python 3 | 0.17 | 0.17 | ? | 1115 | 100% 6% 6% 0% 0% 0% 0% 6% |
fibonacci | |||||
Jython | 6.15 | 2.55 | 3,400 | 181 | 22% 59% 28% 7% 24% 41% 29% 33% |
chameneos-redux | |||||
Python 3 | 275.05 | 194.31 | 16,748 | 1191 | 11% 14% 14% 14% 17% 21% 18% 22% |
templates | |||||
Python 3 | 0.57 | 0.58 | 20,176 | 322 | 100% 0% 0% 2% 0% 3% 0% 2% |
mandelbrot | |||||
Python 3 | 25.42 | 3.34 | 317,300 | 3852 | 95% 99% 94% 96% 95% 94% 96% 96% |
binary-trees | |||||
Python 3 | 1.03 | 0.22 | 3,584 | 741 | 81% 62% 55% 57% 64% 57% 62% 57% |
binary-trees-redux | |||||
† possible mismatch - one-core program compared to multi-core program.
Remember - those are just the fastest Jython and Python 3 programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Jython.
Maybe one of those other Jython programs is fastest on a different OS/machine.
Remember - those are just the fastest Jython and Python 3 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.