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/12 ±
 n-body ±
 meteor-contest † ±
 fibonacci † ±
 richards † ±
 jsonbench † ±
 fasta † 1/2
 pystone † ±
 k-nucleotide13×?±
 regex-dna †33×?±
 spectral-norm41×?
 reverse-complement54×?±
 pidigits †200×?±
 Jython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/121/1233×78×200×

† 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 327.2421.6413,344448  31% 36% 27% 34%
 n-body 
Jython72.5868.57297,2521337  34% 21% 30% 21%
Python 344.2944.338,7961315  7% 100% 3% 4%
 meteor-contest 
Jython12.517.41307,5761485  25% 40% 49% 55% †
Python 33.403.468,8521443  44% 5% 64% 4% †
 fibonacci 
Jython4.571.80255,888181  73% 69% 61% 51% †
Python 30.670.679,364182  5% 100% 6% 2% †
 richards 
Jython6.883.11298,5042423  58% 47% 81% 36% †
Python 31.121.129,0682434  6% 100% 2% 0% †
 jsonbench 
Jython23.5613.91404,840322  41% 38% 41% 51% †
Python 33.623.8012,268322  100% 5% 4% 5% †
 fasta 
Jython25.4021.24316,384900  31% 32% 36% 20% †
Python 310.174.9090,4482016  70% 79% 66% 51% †
 pystone 
Jython6.392.29287,7282301  82% 72% 66% 61% †
Python 30.260.271,8082303  7% 100% 4% 0% †
 k-nucleotide 
Jython3.951.66197,900593  66% 50% 61% 77%
Python 30.120.13?594  100% 8% 14% 8%
 regex-dna 
Jython3.701.57190,872501  69% 52% 72% 64% †
Python 30.050.05?524  0% 100% 0% 0% †
 spectral-norm 
Jython8.414.96294,976594  31% 64% 46% 29%
Python 30.120.12?394  14% 100% 15% 0%
 reverse-complement 
Jython2.801.24169,836432  46% 52% 39% 94%
Python 30.020.02?449  0% 0% 100% 33%
 pidigits 
Jython8.845.40290,952322  34% 45% 51% 35% †
Python 30.030.03?379  0% 0% 100% 0% †
 binary-trees 
No program
Python 33.280.9664,672706  90% 86% 90% 87%
 iobench 
No program
Python 35.585.768,556367  34% 34% 24% 93%
 fasta-redux 
No program
Python 30.360.369081115  31% 23% 100% 9%
 fib50 
No program
Python 33.343.358,880136  11% 5% 5% 99%
 chameneos-redux 
No program
Python 3166.3596.308,8201191  51% 46% 41% 46%
 fannkuch-redux 
No program
Python 311.833.4652,828894  97% 96% 90% 97%
 templates 
No program
Python 31.091.1219,848322  6% 1% 99% 1%
 mandelbrot 
No program
Python 374.0819.52181,9363832  98% 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