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 † ±
 fibonacci † ±
 jsonbench † ±
 thread-ring † ±
 fasta 1/2
 pystone †10× ±
 templates †15× ±
 k-nucleotide †19×?±
 spectral-norm †61×?
 pidigits230×?±
 Jython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)15×34×230×

† 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 
Jython96.8391.19280,9041337  37% 33% 27% 20%
Python 360.1960.208,8761315  1% 2% 1% 100%
 meteor-contest 
Jython17.8010.27318,0281354  45% 79% 29% 27% †
Python 34.554.558,7081443  0% 100% 0% 0% †
 fib50 
Jython17.5110.49307,920136  61% 39% 48% 43% †
Python 34.274.279,048136  2% 1% 100% 2% †
 richards 
Jython12.594.97289,3362423  60% 67% 68% 65% †
Python 31.611.628,7162434  5% 100% 0% 1% †
 fibonacci 
Jython8.393.13295,100181  77% 79% 52% 72% †
Python 30.840.859,448182  4% 2% 100% 5% †
 jsonbench 
Jython28.8617.97334,456322  44% 71% 25% 29% †
Python 34.734.7412,472322  0% 6% 2% 96% †
 thread-ring 
Jython8.573.38292,044407  71% 68% 84% 51% †
Python 30.810.819,096407  0% 100% 10% 2% †
 fasta 
Jython38.5431.81307,288900  40% 31% 33% 44%
Python 316.517.24421,0882016  61% 80% 52% 55%
 pystone 
Jython10.803.76312,3802301  83% 77% 81% 52% †
Python 30.370.371,7442303  3% 0% 100% 0% †
 templates 
Jython52.8821.40379,632307  77% 68% 76% 67% †
Python 31.391.4015,944322  6% 0% 0% 99% †
 k-nucleotide 
Jython7.392.73279,848593  57% 59% 79% 81% †
Python 30.140.15?594  0% 100% 0% 0% †
 spectral-norm 
Jython12.877.94289,792594  48% 34% 57% 33% †
Python 30.130.13?394  0% 0% 100% 0% †
 pidigits 
Jython12.727.59283,068322  57% 45% 40% 36%
Python 30.030.03?379  100% 0% 25% 0%
 reverse-complement 
No program
Python 30.030.03?458  100% 25% 0% 0%
 iobench 
No program
Python 34.724.728,428367  0% 100% 0% 2%
 binary-trees 
No program
Python 35.281.4765,160741  90% 92% 92% 91%
 fasta-redux 
No program
Python 30.410.416,0241115  2% 3% 0% 100%
 fannkuch-redux 
No program
Python 320.205.3757,448894  97% 99% 96% 97%
 regex-dna 
No program
Python 30.060.06?524  57% 33% 0% 0%
 chameneos-redux 
No program
Python 3175.2995.248,8201191  31% 32% 49% 50%
 mandelbrot 
No program
Python 398.7025.71184,9483832  97% 98% 98% 99%
 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