1 : At a glance - Are the Erlang programs faster?

Each chart bar shows, for one unidentified benchmark, how much the fastest Erlang program used compared to the fastest Erlang HiPE 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 : Approximately - Are the Erlang programs faster?

Each table row shows, for one named benchmark, how much the fastest Erlang program used compared to the fastest Erlang HiPE program.

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

 Erlang used what fraction? used how many times more? 
Benchmark Time Memory Code
 reverse-complement±±±
 regex-dna±±±
 pidigits± ±
 k-nucleotide±±±
 binary-trees±±
 fasta ±
 fannkuch-redux ±
 spectral-norm ±
 n-body ±
 mandelbrot ±
 Erlang used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±

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

 3 : Measurements - Are the Erlang programs faster?

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 Erlang program are shown for comparison against measurements of the fastest Erlang HiPE program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 reverse-complement 
Erlang20.1810.341,029,9521302  44% 46% 51% 56%
Erlang HiPE21.1610.83859,3001302  33% 92% 30% 42%
 regex-dna 
Erlang35.7410.16441,0361058  80% 93% 95% 85%
Erlang HiPE35.9110.42383,6441058  88% 82% 90% 85%
 pidigits 
Erlang16.7415.8238,600512  13% 22% 25% 47%
Erlang HiPE17.3215.8936,164512  82% 14% 8% 7%
 k-nucleotide 
Erlang455.25164.121,036,744932  88% 58% 60% 74%
Erlang HiPE398.80152.521,126,548932  59% 79% 57% 69%
 binary-trees 
Erlang107.3629.89850,240499  88% 96% 91% 86%
Erlang HiPE71.4219.54908,280499  96% 89% 92% 91%
 fasta 
Erlang56.8354.8729,9281164  92% 9% 2% 1%
Erlang HiPE34.5932.9921,6841164  84% 14% 2% 6%
 fannkuch-redux 
Erlang779.23199.7121,2921038  99% 97% 94% 100%
Erlang HiPE470.74119.2920,3401038  100% 99% 98% 99%
 spectral-norm 
Erlang144.2136.6022,676747  99% 98% 99% 98%
Erlang HiPE71.1218.3928,684747  96% 97% 97% 97%
 n-body 
Erlang427.17427.2933,2761399  7% 7% 37% 65%
Erlang HiPE193.28193.3319,3961399  1% 1% 1% 100%
 mandelbrot 
Erlang1,917.86486.541,312,428613  99% 99% 99% 99%
Erlang HiPE501.64131.961,370,444613  95% 95% 96% 95%
 fasta-redux
   No programs

 4 : Are there other Erlang programs for these benchmarks?

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

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

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Erlang and Erlang HiPE 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.

 Erlang : concurrent real-time distributed fault-tolerant software 

"Four-fold Increase in Productivity and Quality: Industrial-Strength Functional Programming in Telecom-Class Products" pdf

Getting Started with Erlang

Erlang/OTP 18 [erts-7.0] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]

Home Page: http://www.erlang.org/

Download: http://www.erlang.org/download.html

Revised BSD license

  Home   Conclusions   License   Play