Python Interpreters Benchmarks
x64 ArchLinux : AMD® Ryzen 7 4700U®

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/21 ±
 n-body †± ±
 meteor-contest ±
 fib50 ±
 richards ±
 fibonacci ±
 fasta 1/2
 jsonbench ±
 pystone11× ±
 k-nucleotide30×?±
 spectral-norm35×?
 regex-dna53×?±
 iobench †80× ±
 reverse-complement102×?±
 pidigits307×?±
 Jython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/211/2144×105×307×

† 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 
Jython5.842.663,476407  54% 23% 34% 24% 32% 24% 15% 20%
Python 364.6956.0812,708448  22% 21% 22% 20% 17% 18% 17% 17%
 n-body 
Jython47.8942.473,3801337  13% 32% 42% 14% 3% 4% 2% 4% †
Python 338.1938.198,0921315  19% 16% 100% 13% 14% 14% 12% 12% †
 meteor-contest 
Jython9.645.513,4321485  58% 22% 17% 13% 14% 12% 24% 17%
Python 32.602.629,2561443  60% 13% 10% 11% 54% 12% 11% 12%
 fib50 
Jython11.086.913,592130  17% 14% 11% 5% 44% 24% 21% 25%
Python 32.132.149,276136  5% 4% 4% 2% 5% 3% 100% 2%
 richards 
Jython7.013.063,3802423  18% 41% 29% 35% 21% 29% 29% 33%
Python 30.900.908,7282434  19% 18% 18% 14% 100% 13% 12% 15%
 fibonacci 
Jython6.152.553,400181  22% 59% 28% 7% 24% 41% 29% 33%
Python 30.560.568,584182  12% 50% 17% 5% 54% 7% 11% 2%
 fasta 
Jython25.5020.973,540900  28% 13% 13% 12% 22% 32% 1% 2%
Python 37.494.4412,9362016  24% 55% 29% 21% 18% 71% 16% 18%
 jsonbench 
Jython23.4415.073,592322  34% 25% 14% 9% 17% 20% 19% 19%
Python 32.642.6412,316322  100% 4% 3% 2% 4% 4% 6% 1%
 pystone 
Jython7.202.843,5482301  22% 34% 21% 79% 32% 23% 18% 28%
Python 30.250.251,6162300  20% 12% 36% 12% 17% 17% 9% 100%
 k-nucleotide 
Jython4.892.153,448593  34% 52% 20% 30% 23% 31% 21% 16%
Python 30.100.07?801  17% 14% 38% 88% 25% 12% 83% 22%
 spectral-norm 
Jython8.795.593,540594  23% 31% 26% 41% 10% 8% 8% 11%
Python 30.160.16?394  6% 73% 17% 0% 94% 0% 7% 0%
 regex-dna 
Jython5.592.473,484501  36% 22% 30% 40% 31% 31% 24% 14%
Python 30.050.05?524  67% 20% 0% 40% 0% 0% 83% 20%
 iobench 
Jython286.89270.093,620370  19% 26% 30% 27% 1% 1% 1% 1% †
Python 33.383.398,140367  51% 26% 22% 19% 76% 17% 18% 16% †
 reverse-complement 
Jython4.281.943,360431  19% 35% 30% 31% 62% 10% 26% 13%
Python 30.020.02?449  33% 100% 33% 50% 0% 0% 33% 100%
 pidigits 
Jython10.776.453,588322  18% 30% 55% 20% 13% 7% 13% 12%
Python 30.020.02?379  67% 25% 33% 0% 0% 0% 33% 100%
 fannkuch-redux 
No program
Python 314.552.2012,8121069  94% 95% 94% 90% 98% 90% 93% 90%
 fasta-redux 
No program
Python 30.250.258161115  14% 96% 0% 4% 23% 19% 17% 9%
 templates 
No program
Python 30.920.9216,376322  17% 14% 14% 13% 12% 99% 6% 13%
 chameneos-redux 
No program
Python 3296.43215.338,7281191  19% 14% 14% 13% 14% 15% 14% 14%
 mandelbrot 
No program
Python 392.9312.6961,7403852  96% 99% 98% 99% 99% 96% 98% 98%
 binary-trees 
No program
Python 31.460.291,620741  69% 67% 79% 61% 68% 71% 64% 62%
 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