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
 meteor-contest ±
 fib50 † ±
 richards † ±
 jsonbench ±
 thread-ring ±
 fibonacci † ±
 fasta 1/2
 pystone †10× ±
 templates11× ±
 k-nucleotide16×?±
 spectral-norm †54×?
 pidigits †217×?±
 Jython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)13×29×217×

† 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
 meteor-contest 
Jython17.8010.27318,0281354  45% 79% 29% 27%
Python 35.205.209,6281443  6% 7% 100% 100%
 fib50 
Jython17.5110.49307,920136  61% 39% 48% 43% †
Python 34.144.159,260136  1% 100% 2% 1% †
 richards 
Jython12.594.97289,3362423  60% 67% 68% 65% †
Python 31.651.659,2842434  50% 2% 54% 2% †
 jsonbench 
Jython28.8617.97334,456322  44% 71% 25% 29%
Python 35.765.7812,956322  17% 91% 100% 22%
 thread-ring 
Jython8.573.38292,044407  71% 68% 84% 51%
Python 30.940.959,352407  15% 17% 22% 99%
 fibonacci 
Jython8.393.13295,100181  77% 79% 52% 72% †
Python 30.790.809,636182  11% 3% 1% 100% †
 fasta 
Jython38.5431.81307,288900  40% 31% 33% 44%
Python 314.996.33421,5922016  68% 78% 49% 48%
 pystone 
Jython10.803.76312,3802301  83% 77% 81% 52% †
Python 30.390.391,8442303  10% 3% 100% 3% †
 templates 
Jython52.8821.40379,632307  77% 68% 76% 67%
Python 31.951.9522,628322  82% 23% 21% 44%
 k-nucleotide 
Jython7.392.73279,848593  57% 59% 79% 81%
Python 30.170.17?594  12% 89% 100% 6%
 spectral-norm 
Jython12.877.94289,792594  48% 34% 57% 33% †
Python 30.140.15?394  7% 0% 100% 13% †
 pidigits 
Jython12.727.59283,068322  57% 45% 40% 36% †
Python 30.030.04?379  0% 0% 0% 100% †
 n-body 
No program
Python 370.6070.628,9561315  18% 44% 87% 60%
 reverse-complement 
No program
Python 30.030.04?449  0% 75% 0% 0%
 iobench 
No program
Python 35.335.338,804367  99% 4% 5% 100%
 regex-dna 
No program
Python 30.060.06?524  0% 0% 0% 100%
 binary-trees 
No program
Python 35.311.5867,364741  86% 86% 86% 93%
 fannkuch-redux 
No program
Python 320.195.2855,404894  98% 97% 96% 97%
 fasta-redux 
No program
Python 30.410.4216,4601115  0% 100% 0% 2%
 chameneos-redux 
No program
Python 3170.3092.848,9561191  38% 41% 42% 38%
 mandelbrot 
No program
Python 399.5932.46187,5123832  99% 99% 97% 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