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

vs

 1 : Are the Graal programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest Graal program used compared to the fastest Python 2 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 Graal programs faster? Approximately.

Each table row shows, for one named benchmark, how much the fastest Graal program used compared to the fastest Python 2 program.

(Memory use is only compared for tasks that require memory to be allocated.)

 Graal used what fraction? used how many times more? 
Benchmark Time Memory Code
 n-body1/6 ±
 fannkuch-redux †± 1/2
 fasta † ±
 iobench ±
 meteor-contest † ±
 richards † ±
 pystone † ±
 fib50 † ±
 spectral-norm †12×?
 k-nucleotide †19×?±
 fibonacci68× 1/2
 Graal used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/61/618×68×

† possible mismatch - one-core program compared to multi-core program.

± read the measurements and then read the program source code.

 3 : Are the Graal 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 Graal program are shown for comparison against measurements of the fastest Python 2 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 n-body 
Graal7.397.58470,3001315  11% 93% 3% 4%
Python 247.5847.637,0081337  6% 1% 1% 100%
 fannkuch-redux 
Graal3.343.20464,152552  96% 5% 2% 10% †
Python 216.774.4411,6481009  99% 97% 94% 96% †
 fasta 
Graal19.8514.95558,920889  19% 31% 74% 20% †
Python 26.466.4713,176900  6% 2% 100% 2% †
 iobench 
Graal122.78116.50562,216367  27% 37% 5% 46%
Python 249.0549.096,652370  6% 1% 2% 100%
 meteor-contest 
Graal11.706.50564,8001443  63% 47% 13% 74% †
Python 22.672.677,0041485  6% 2% 100% 1% †
 richards 
Graal10.905.09519,2082434  42% 43% 71% 74% †
Python 21.131.136,9322423  6% 100% 0% 1% †
 pystone 
Graal1.891.15457,4482300  35% 34% 26% 79% †
Python 20.230.266042301  4% 4% 0% 96% †
 fib50 
Graal16.8714.14540,352136  95% 13% 3% 18% †
Python 22.792.7938,248130  6% 3% 100% 1% †
 spectral-norm 
Graal1.361.21469,688594  91% 9% 3% 19% †
Python 20.090.10?394  0% 100% 0% 0% †
 k-nucleotide 
Graal2.801.74495,388594  8% 75% 31% 59% †
Python 20.090.09?593  100% 11% 0% 0% †
 fibonacci 
Graal45.1345.21463,060110  8% 2% 2% 99%
Python 20.670.677,268181  7% 100% 6% 2%
 reverse-complement 
Graal0.170.18?878  17% 94% 0% 6%
Python 20.01?431  
 regex-dna 
No program
Python 20.040.04?501  0% 0% 75% 0%
 pidigits 
No program
Python 23.043.187,368322  100% 2% 2% 1%
 chameneos-redux 
No program
Python 2287.09114.886,9401192  62% 61% 61% 60%
 jsonbench 
No program
Python 24.454.6016,312322  72% 30% 2% 2%
 thread-ring 
No program
Python 20.550.586,964407  100% 3% 0% 0%
 binary-trees 
No program
Python 23.751.0416,568743  91% 90% 90% 96%
 fasta-redux
   No programs
 mandelbrot
   No programs
 templates
   No programs
 binary-trees-redux
   No programs

† possible mismatch - one-core program compared to multi-core program.

 4 : Are there other Graal programs for these benchmarks?

Remember - those are just the fastest Graal and Python 2 programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Graal.

Maybe one of those other Graal programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Graal and Python 2 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.

 Graal : Graal 

 

Revised BSD license

  Home   Conclusions   License   Play