vs

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

Each chart bar shows, for one unidentified benchmark, how much the fastest Grumpy 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 Grumpy programs faster? Approximately.

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

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

 Grumpy used what fraction? used how many times more? 
Benchmark Time Memory Code
 thread-ring † ±
 richards ±
 fibonacci †23× 1/2
 Grumpy used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)14×23×23×

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

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

 3 : Are the Grumpy 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 Grumpy 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
 thread-ring 
Grumpy2.232.107,752407  26% 32% 27% 36% †
Python 20.550.557,072407  2% 100% 0% 2% †
 richards 
Grumpy5.715.318,2762423  28% 32% 26% 30%
Python 21.171.177,1322423  1% 1% 100% 0%
 fibonacci 
Grumpy38.5515.39498,660110  65% 71% 65% 64% †
Python 20.660.677,128181  0% 0% 0% 100% †
 meteor-contest 
No program
Python 22.652.656,9361485  100% 1% 1% 1%
 fib50 
No program
Python 22.972.9738,504136  100% 0% 0% 0%
 spectral-norm 
No program
Python 20.070.07?394  13% 0% 57% 43%
 pidigits 
No program
Python 20.010.02?380  0% 0% 0% 50%
 fasta 
No program
Python 26.466.4713,124900  0% 77% 23% 0%
 regex-dna 
No program
Python 20.040.04?501  80% 0% 20% 0%
 chameneos-redux 
No program
Python 2114.0263.149,1241192  36% 33% 32% 29%
 fannkuch-redux 
No program
Python 216.654.3442,0441009  95% 96% 95% 97%
 n-body 
No program
Python 249.9349.936,9161337  0% 5% 0% 95%
 iobench 
No program
Python 224.8524.866,820370  0% 0% 100% 0%
 pystone 
No program
Python 20.240.248122301  4% 96% 4% 0%
 jsonbench 
No program
Python 24.334.3417,160322  0% 100% 0% 0%
 reverse-complement 
No program
Python 20.010.01?455  0% 0% 100% 0%
 k-nucleotide 
No program
Python 20.090.09?593  0% 10% 0% 89%
 binary-trees 
No program
Python 23.811.1660,644743  79% 87% 84% 82%
 templates 
No program
Python 21.051.0616,260307  0% 2% 0% 99%
 mandelbrot 
No program
Python 274.8719.17173,5243832  97% 98% 99% 97%
 fasta-redux
   No programs
 binary-trees-redux
   No programs

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

 4 : Are there other Grumpy programs for these benchmarks?

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

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

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Grumpy 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.

 Grumpy : Grumpy 

 

Revised BSD license

  Home   Conclusions   License   Play