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

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-body †1/11 ±
 fasta †1/3 
 spectral-norm± ±
 meteor-contest †± ±
 fannkuch-redux± 1/2
 fibonacci †± ±
 jsonbench † ±
 iobench † ±
 richards † ±
 pidigits † ±
 fib50 † ±
 pystone †?±
 k-nucleotide †11×?±
 Graal used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/111/11±11×

† 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 
Graal4.313.45745,9041315  81% 8% 0% 10% 13% 0% 10% 6% †
Python 238.7838.786,6841337  0% 0% 0% 0% 0% 1% 0% 100% †
 fasta 
Graal4.072.11760,2761698  41% 26% 19% 19% 16% 37% 88% 48% †
Python 25.875.9112,988900  0% 0% 1% 0% 0% 99% 0% 0% †
 spectral-norm 
Graal1.970.96729,476594  26% 26% 57% 35% 19% 12% 1% 36%
Python 24.231.1311,728595  78% 71% 51% 30% 25% 35% 40% 59%
 meteor-contest 
Graal5.671.83873,8081540  11% 74% 44% 18% 51% 13% 20% 86% †
Python 22.142.146,8281485  0% 0% 100% 0% 0% 0% 0% 1% †
 fannkuch-redux 
Graal3.863.47735,676552  93% 75% 86% 90% 76% 86% 98% 70%
Python 211.022.8511,4601009  6% 4% 97% 95% 94% 0% 1% 96%
 fibonacci 
Graal1.690.68568,420182  60% 19% 53% 28% 13% 90% 17% 47% †
Python 20.490.496,772181  0% 100% 2% 0% 0% 0% 0% 0% †
 jsonbench 
Graal19.566.721,188,928322  72% 53% 27% 34% 41% 58% 50% 13% †
Python 24.254.2615,884322  0% 0% 100% 0% 0% 0% 0% 0% †
 iobench 
Graal57.5147.071,235,176367  34% 24% 27% 23% 74% 34% 19% 19% †
Python 224.8624.866,336370  0% 0% 100% 0% 0% 0% 0% 0% †
 richards 
Graal6.692.08906,6362434  76% 82% 1% 0% 6% 83% 9% 69% †
Python 20.870.876,3482423  1% 0% 100% 0% 1% 0% 0% 0% †
 pidigits 
Graal8.156.17803,816322  0% 93% 9% 0% 6% 16% 4% 7% †
Python 22.132.137,128322  0% 0% 0% 0% 1% 0% 100% 0% †
 fib50 
Graal15.7710.47895,300136  62% 20% 20% 17% 43% 23% 26% 26% †
Python 22.402.4037,872130  0% 0% 100% 0% 0% 0% 0% 0% †
 pystone 
Graal2.350.87662,9642300  1% 53% 74% 1% 45% 0% 34% 65% †
Python 20.200.20?2301  0% 0% 0% 0% 0% 100% 0% 0% †
 k-nucleotide 
Graal2.140.81612,300594  30% 4% 63% 58% 44% 52% 25% 6% †
Python 20.070.07?593  100% 0% 0% 0% 0% 0% 0% 0% †
 reverse-complement 
Graal0.490.281,012449  26% 0% 25% 0% 11% 7% 21% 89%
Python 20.01?432  
 regex-dna 
No program
Python 20.030.03?501  100% 0% 0% 0% 0% 0% 0% 33%
 fasta-redux 
Graal8.625.34816,3761115  34% 64% 16% 22% 26% 21% 42% 13%
No program
 thread-ring 
No program
Python 20.380.392,800407  3% 3% 97% 0% 0% 0% 0% 0%
 binary-trees 
No program
Python 22.020.4716,340743  54% 57% 56% 54% 64% 57% 63% 54%
 mandelbrot
   No programs
 chameneos-redux
   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