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

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 : Are the Erlang programs faster? Approximately.

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±±±
 pidigits± ±
 regex-dna±±±
 k-nucleotide±±±
 binary-trees±±
 fannkuch-redux ±
 fasta ±
 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 : Are the Erlang 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 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.4410.301,002,1881302  40% 70% 38% 52%
Erlang HiPE20.7110.53947,6881302  42% 75% 38% 43%
 pidigits 
Erlang16.2115.8137,764512  74% 2% 14% 14%
Erlang HiPE16.4315.9429,812512  67% 32% 2% 3%
 regex-dna 
Erlang35.029.95395,4681058  90% 90% 88% 85%
Erlang HiPE34.609.60434,1721058  90% 92% 91% 88%
 k-nucleotide 
Erlang433.70160.221,011,344932  50% 70% 64% 91%
Erlang HiPE366.79138.451,019,072932  61% 56% 65% 86%
 binary-trees 
Erlang111.3830.73827,372499  93% 90% 91% 90%
Erlang HiPE68.8219.05965,168499  93% 93% 87% 89%
 fannkuch-redux 
Erlang788.95201.1413,6921038  99% 97% 99% 98%
Erlang HiPE487.44124.5915,7321038  99% 99% 94% 100%
 fasta 
Erlang60.6460.6516,2401164  1% 1% 100% 0%
Erlang HiPE30.9030.9019,9121164  91% 9% 0% 1%
 spectral-norm 
Erlang152.1838.5620,576747  98% 98% 99% 100%
Erlang HiPE70.4418.0326,640747  97% 98% 98% 98%
 n-body 
Erlang401.48401.6125,6761399  1% 1% 100% 0%
Erlang HiPE185.00185.0317,8281399  1% 0% 99% 1%
 mandelbrot 
Erlang2,004.34513.211,605,524534  98% 98% 98% 98%
Erlang HiPE590.43159.161,735,152534  94% 92% 94% 93%
 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 17 [erts-6.2] [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