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
 k-nucleotide21×?±
 spectral-norm †24× 
 regex-dna †27×?±
 reverse-complement †50×?±
 pidigits174×?±
 Jython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/131/1325×59×174×

† 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 334.0024.8313,240448  33% 35% 23% 39%
 n-body 
Jython72.5868.57297,2521337  34% 21% 30% 21%
Python 346.5648.708,8721315  100% 1% 0% 1%
 meteor-contest 
Jython12.517.41307,5761485  25% 40% 49% 55% †
Python 33.233.238,9041443  6% 100% 0% 0% †
 fibonacci 
Jython4.571.80255,888181  73% 69% 61% 51% †
Python 30.680.689,376182  4% 0% 100% 0% †
 richards 
Jython6.883.11298,5042423  58% 47% 81% 36%
Python 31.101.109,0002434  12% 4% 5% 100%
 jsonbench 
Jython23.5613.91404,840322  41% 38% 41% 51% †
Python 33.313.3111,908322  5% 0% 1% 100% †
 fasta 
Jython25.4021.24316,384900  31% 32% 36% 20% †
Python 37.814.20104,0802016  67% 78% 28% 18% †
 k-nucleotide 
Jython3.951.66197,900593  66% 50% 61% 77%
Python 30.110.08?801  22% 38% 22% 88%
 spectral-norm 
Jython8.414.96294,976594  31% 64% 46% 29% †
Python 30.200.211,792394  100% 5% 5% 10% †
 regex-dna 
Jython3.701.57190,872501  69% 52% 72% 64% †
Python 30.060.06?524  100% 0% 0% 0% †
 reverse-complement 
Jython2.801.24169,836432  46% 52% 39% 94% †
Python 30.020.03?449  0% 0% 0% 100% †
 pidigits 
Jython8.845.40290,952322  34% 45% 51% 35%
Python 30.030.03?379  0% 25% 0% 100%
 templates 
No program
Python 31.031.0419,920322  10% 100% 3% 4%
 fannkuch-redux 
No program
Python 313.133.4947,092894  97% 99% 91% 98%
 iobench 
No program
Python 35.425.438,916367  5% 0% 0% 100%
 fib50 
No program
Python 33.373.378,432136  5% 95% 0% 5%
 fasta-redux 
No program
Python 30.290.291,8201115  4% 0% 100% 0%
 binary-trees 
No program
Python 33.280.9755,856741  91% 84% 88% 85%
 pystone 
Jython6.572.39311,3162301  79% 68% 54% 76%
No program
 chameneos-redux 
No program
Python 3345.87171.998,7881191  48% 41% 46% 46%
 mandelbrot
   No programs
 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