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 † ±
 thread-ring † ±
 jsonbench † ±
 fasta † 1/2
 pystone † ±
 k-nucleotide †15×?±
 regex-dna †31×?±
 spectral-norm †42×?
 reverse-complement50×?±
 pidigits †200×?±
 Jython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)31×73×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
 n-body 
Jython72.5868.57297,2521337  34% 21% 30% 21%
Python 343.2343.238,8681315  0% 100% 0% 0%
 meteor-contest 
Jython12.517.41307,5761485  25% 40% 49% 55% †
Python 33.443.449,2641443  0% 50% 0% 50% †
 fib50 
Jython12.427.47347,824136  37% 38% 48% 43% †
Python 33.243.249,352136  0% 69% 0% 32% †
 richards 
Jython6.883.11298,5042423  58% 47% 81% 36% †
Python 31.281.289,2762434  1% 0% 99% 0% †
 fibonacci 
Jython4.571.80255,888181  73% 69% 61% 51% †
Python 30.670.679,516182  1% 0% 99% 0% †
 thread-ring 
Jython4.521.87270,388407  65% 66% 45% 66% †
Python 30.570.579,120407  0% 2% 0% 100% †
 jsonbench 
Jython23.5613.91404,840322  41% 38% 41% 51% †
Python 33.613.6112,148322  0% 1% 0% 100% †
 fasta 
Jython25.4021.24316,384900  31% 32% 36% 20% †
Python 39.234.2481,3362016  68% 90% 22% 40% †
 pystone 
Jython6.392.29287,7282301  82% 72% 66% 61% †
Python 30.290.291,9442303  0% 0% 0% 100% †
 k-nucleotide 
Jython3.951.66197,900593  66% 50% 61% 77% †
Python 30.110.11?594  0% 100% 9% 0% †
 regex-dna 
Jython3.701.57190,872501  69% 52% 72% 64% †
Python 30.050.05?524  0% 0% 100% 0% †
 spectral-norm 
Jython8.414.96294,976594  31% 64% 46% 29% †
Python 30.120.12?394  0% 0% 100% 8% †
 reverse-complement 
Jython2.801.24169,836432  46% 52% 39% 94%
Python 30.020.03?449  33% 0% 100% 0%
 pidigits 
Jython8.845.40290,952322  34% 45% 51% 35% †
Python 30.030.03?379  0% 0% 0% 100% †
 iobench 
No program
Python 33.553.558,808367  0% 100% 0% 0%
 binary-trees 
No program
Python 33.470.9959,436741  85% 86% 85% 97%
 fasta-redux 
No program
Python 30.300.301,9441115  0% 3% 0% 100%
 chameneos-redux 
No program
Python 3120.8065.948,8321191  36% 34% 35% 33%
 fannkuch-redux 
No program
Python 312.493.3253,548894  97% 92% 95% 93%
 templates 
No program
Python 31.231.2321,076322  0% 0% 2% 98%
 mandelbrot 
No program
Python 367.7917.28187,1363832  97% 97% 99% 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