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-nucleotide23×?±
 regex-dna †28×?±
 spectral-norm †34×?
 reverse-complement †50×?±
 pidigits †174×?±
 Jython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/131/1331×75×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.1324.1813,204448  23% 37% 20% 48%
 n-body 
Jython72.5868.57297,2521337  34% 21% 30% 21%
Python 346.5346.908,8121315  21% 0% 83% 1%
 meteor-contest 
Jython12.517.41307,5761485  25% 40% 49% 55% †
Python 33.203.218,9201443  5% 100% 1% 1% †
 fibonacci 
Jython4.571.80255,888181  73% 69% 61% 51% †
Python 30.680.689,316182  6% 0% 100% 0% †
 richards 
Jython6.883.11298,5042423  58% 47% 81% 36% †
Python 31.091.109,0082434  5% 0% 0% 100% †
 jsonbench 
Jython23.5613.91404,840322  41% 38% 41% 51% †
Python 33.293.2912,396322  5% 0% 1% 100% †
 fasta 
Jython25.4021.24316,384900  31% 32% 36% 20% †
Python 37.824.22104,0842016  50% 75% 56% 10% †
 k-nucleotide 
Jython3.951.66197,900593  66% 50% 61% 77%
Python 30.090.07?801  14% 14% 14% 88%
 regex-dna 
Jython3.701.57190,872501  69% 52% 72% 64% †
Python 30.050.06?524  17% 100% 0% 0% †
 spectral-norm 
Jython8.414.96294,976594  31% 64% 46% 29% †
Python 30.140.15?394  13% 100% 0% 0% †
 reverse-complement 
Jython2.801.24169,836432  46% 52% 39% 94% †
Python 30.020.03?449  0% 100% 0% 0% †
 pidigits 
Jython8.845.40290,952322  34% 45% 51% 35% †
Python 30.030.03?379  100% 0% 0% 0% †
 pystone 
Jython6.572.39311,3162301  79% 68% 54% 76%
No program
 fasta-redux 
No program
Python 30.290.291,7881115  4% 0% 3% 100%
 chameneos-redux 
No program
Python 3353.29175.808,9561191  48% 40% 47% 47%
 iobench 
No program
Python 35.695.698,892367  5% 0% 100% 1%
 fib50 
No program
Python 33.503.508,600136  6% 1% 100% 0%
 templates 
No program
Python 31.101.1619,872322  5% 2% 98% 0%
 binary-trees 
No program
Python 33.200.9657,316741  89% 84% 81% 88%
 fannkuch-redux 
No program
Python 313.173.4747,392894  97% 99% 91% 99%
 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