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
 thread-ring1/13 ±
 n-body † ±
 meteor-contest † ±
 fibonacci † ±
 richards † ±
 jsonbench † ±
 fasta † 1/2
 pystone † ±
 k-nucleotide †13×?±
 spectral-norm28×?
 regex-dna †31×?±
 reverse-complement52×?±
 pidigits120×?±
 Jython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/131/1328×65×120×

† 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
 thread-ring 
Jython4.521.87270,388407  65% 66% 45% 66%
Python 332.3823.8413,176448  33% 38% 32% 29%
 n-body 
Jython72.5868.57297,2521337  34% 21% 30% 21% †
Python 344.7145.218,8281315  37% 30% 44% 11% †
 meteor-contest 
Jython12.517.41307,5761485  25% 40% 49% 55% †
Python 33.353.358,8401443  81% 6% 20% 1% †
 fibonacci 
Jython4.571.80255,888181  73% 69% 61% 51% †
Python 30.670.689,136182  100% 9% 3% 3% †
 richards 
Jython6.883.11298,5042423  58% 47% 81% 36% †
Python 31.151.158,9322434  2% 10% 100% 3% †
 jsonbench 
Jython23.5613.91404,840322  41% 38% 41% 51% †
Python 33.553.5612,296322  1% 7% 3% 100% †
 fasta 
Jython25.4021.24316,384900  31% 32% 36% 20% †
Python 38.994.4596,8682016  56% 55% 52% 47% †
 pystone 
Jython6.392.29287,7282301  82% 72% 66% 61% †
Python 30.280.291,9402303  3% 4% 3% 97% †
 k-nucleotide 
Jython3.951.66197,900593  66% 50% 61% 77% †
Python 30.130.13?594  0% 8% 0% 100% †
 spectral-norm 
Jython8.414.96294,976594  31% 64% 46% 29%
Python 30.180.18?394  95% 17% 21% 6%
 regex-dna 
Jython3.701.57190,872501  69% 52% 72% 64% †
Python 30.050.05?524  0% 17% 100% 0% †
 reverse-complement 
Jython2.801.24169,836432  46% 52% 39% 94%
Python 30.020.02?449  100% 0% 0% 33%
 pidigits 
Jython8.845.40290,952322  34% 45% 51% 35%
Python 30.040.05?379  60% 100% 80% 67%
 binary-trees 
No program
Python 33.351.0666,428741  84% 85% 78% 81%
 iobench 
No program
Python 35.725.738,652367  38% 6% 62% 1%
 fasta-redux 
No program
Python 30.310.318881115  0% 6% 6% 97%
 fib50 
No program
Python 33.393.408,544136  19% 6% 81% 1%
 chameneos-redux 
No program
Python 3331.68177.208,8881191  49% 54% 48% 51%
 fannkuch-redux 
No program
Python 312.963.4653,456894  98% 97% 98% 90%
 templates 
No program
Python 31.141.1520,084322  2% 10% 100% 4%
 mandelbrot 
No program
Python 378.4320.47196,0883832  98% 99% 99% 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