Python Interpreters Benchmarks
x64 ArchLinux : Intel® i5-7200U®

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/8 ±
 n-body ±
 fib50 † ±
 meteor-contest † ±
 fibonacci † ±
 jsonbench † ±
 richards † ±
 fasta 1/2
 pystone13× ±
 k-nucleotide40×?±
 spectral-norm41×?
 regex-dna †49×?±
 reverse-complement108×?±
 pidigits231×?±
 Jython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/81/841×97×231×

† 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 
Jython7.063.103,504407  72% 53% 65% 47%
Python 333.8824.7313,388448  35% 31% 25% 33%
 n-body 
Jython84.3980.203,3521337  29% 31% 34% 19%
Python 340.0140.049,0601315  6% 100% 1% 1%
 fib50 
Jython13.018.783,512130  37% 54% 32% 36% †
Python 33.253.258,476136  6% 2% 100% 1% †
 meteor-contest 
Jython15.038.733,5961485  52% 39% 58% 36% †
Python 33.043.049,5081443  6% 1% 1% 100% †
 fibonacci 
Jython6.543.013,436181  54% 45% 56% 74% †
Python 30.680.689,456182  8% 97% 4% 1% †
 jsonbench 
Jython23.3715.393,620322  42% 33% 52% 35% †
Python 33.183.1812,528322  7% 1% 2% 99% †
 richards 
Jython9.554.313,5362423  70% 60% 55% 46% †
Python 30.880.889,0682434  8% 100% 2% 1% †
 fasta 
Jython28.1123.693,372900  36% 20% 33% 40%
Python 37.304.0812,8322016  44% 58% 54% 34%
 pystone 
Jython8.593.623,5162301  48% 65% 68% 73%
Python 30.270.271,6642300  100% 17% 8% 8%
 k-nucleotide 
Jython6.952.953,556593  86% 61% 54% 45%
Python 30.100.07?801  43% 100% 29% 0%
 spectral-norm 
Jython10.846.383,528594  68% 23% 54% 32%
Python 30.150.16?394  6% 56% 17% 69%
 regex-dna 
Jython6.182.673,500501  57% 77% 51% 57% †
Python 30.050.05?524  0% 0% 100% 0% †
 reverse-complement 
Jython5.462.493,440432  48% 66% 40% 74%
Python 30.020.02?449  33% 0% 0% 100%
 pidigits 
Jython10.796.693,524322  48% 49% 36% 39%
Python 30.030.03?379  0% 25% 100% 0%
 binary-trees 
No program
Python 32.980.9015,752741  91% 83% 82% 82%
 templates 
No program
Python 30.960.9716,192322  5% 2% 100% 5%
 fannkuch-redux 
No program
Python 311.993.1912,420894  98% 94% 96% 96%
 chameneos-redux 
No program
Python 3340.10171.338,6801191  49% 44% 46% 43%
 iobench 
No program
Python 35.405.418,888367  71% 5% 32% 100%
 fasta-redux 
No program
Python 30.280.281,6881115  7% 97% 7% 7%
 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