vs

 1 : Are the Jython programs faster? At a glance.

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.

 2 : Are the Jython programs faster? Approximately.

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 †± ±
 meteor-contest † ±
 fib50 † ±
 richards † ±
 jsonbench † ±
 thread-ring † ±
 fibonacci † ±
 fasta 1/2
 pystone †12× ±
 templates †13× ±
 k-nucleotide †24×?±
 spectral-norm †65×?
 pidigits †228×?±
 Jython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±13×27×228×

† possible mismatch - one-core program compared to multi-core program.

± read the measurements and then read the program source code.

 3 : Are the Jython programs faster? Measurements.

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 
Jython94.6088.48281,0001337  30% 37% 32% 28% †
Python 362.4362.438,8041315  0% 0% 0% 100% †
 meteor-contest 
Jython19.4111.18285,9761485  42% 48% 48% 53% †
Python 34.644.649,0881443  0% 0% 0% 100% †
 fib50 
Jython22.5212.80314,276136  53% 55% 57% 58% †
Python 34.344.349,196136  0% 0% 0% 100% †
 richards 
Jython14.386.36292,1842423  74% 74% 65% 66% †
Python 31.761.769,1802434  100% 0% 0% 0% †
 jsonbench 
Jython33.9419.71385,220322  39% 63% 45% 39% †
Python 34.894.8912,812322  1% 0% 100% 0% †
 thread-ring 
Jython8.613.79286,184407  56% 59% 63% 56% †
Python 30.820.829,068407  99% 0% 2% 1% †
 fibonacci 
Jython9.704.08284,360181  83% 55% 55% 63% †
Python 30.800.809,372182  0% 100% 0% 1% †
 fasta 
Jython41.8335.20290,484900  55% 48% 50% 48%
Python 315.296.27421,2482016  64% 82% 58% 41%
 pystone 
Jython11.424.44287,9642301  74% 67% 69% 67% †
Python 30.380.391,7482303  0% 0% 3% 100% †
 templates 
Jython60.2220.61408,344307  84% 79% 72% 66% †
Python 31.571.5720,924322  100% 1% 0% 1% †
 k-nucleotide 
Jython8.303.54277,160593  73% 57% 62% 59% †
Python 30.150.15?594  0% 0% 6% 100% †
 spectral-norm 
Jython15.939.45290,604594  61% 42% 57% 47% †
Python 30.140.15?394  0% 100% 0% 0% †
 pidigits 
Jython14.728.65281,748322  46% 50% 45% 42% †
Python 30.040.04?379  100% 0% 0% 0% †
 reverse-complement 
No program
Python 30.030.03?449  75% 25% 0% 0%
 iobench 
No program
Python 34.784.788,840367  1% 99% 0% 0%
 binary-trees 
No program
Python 35.411.4863,344741  90% 97% 91% 90%
 fasta-redux 
No program
Python 30.420.4216,2401115  0% 5% 0% 100%
 fannkuch-redux 
No program
Python 319.715.0954,960894  97% 98% 97% 97%
 regex-dna 
No program
Python 30.060.06?524  0% 0% 0% 100%
 chameneos-redux 
No program
Python 3159.8591.858,8561191  38% 35% 36% 38%
 mandelbrot 
No program
Python 3100.2025.63191,1043832  99% 99% 97% 97%
 binary-trees-redux
   No programs

† possible mismatch - one-core program compared to multi-core program.

 4 : Are there other Jython programs for these benchmarks?

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.

 5 : Are there other faster programs for these benchmarks?

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.

 Jython : Python on Java 

 

Revised BSD license

  Home   Conclusions   License   Play