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

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

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

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

 Erlang HiPE used what fraction? used how many times more? 
Benchmark Time Memory Code
 regex-dna±1/2
 binary-trees1/2
 spectral-norm ±
 pidigits ±
 k-nucleotide12×1/2
 fannkuch-redux14× ±
 fasta †16× 1/2
 n-body18× ±
 reverse-complement21×
 mandelbrot32× ±
 Erlang HiPE used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)13×18×32×32×

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

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

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 regex-dna 
Erlang HiPE34.609.60434,1721058  90% 92% 91% 88%
C gcc5.812.44305,4882579  60% 51% 80% 52%
 binary-trees 
Erlang HiPE68.8219.05965,168499  93% 93% 87% 89%
C gcc10.373.33155,504906  79% 62% 74% 99%
 spectral-norm 
Erlang HiPE70.4418.0326,640747  97% 98% 98% 98%
C gcc7.891.98752569  99% 99% 100% 100%
 pidigits 
Erlang HiPE16.4315.9429,812512  67% 32% 2% 3%
C gcc1.731.73932448  1% 1% 3% 100%
 k-nucleotide 
Erlang HiPE366.79138.451,019,072932  61% 56% 65% 86%
C gcc35.0911.37188,4962280  64% 91% 61% 94%
 fannkuch-redux 
Erlang HiPE487.44124.5915,7321038  99% 99% 94% 100%
C gcc34.618.854,520910  99% 98% 100% 94%
 fasta 
Erlang HiPE30.9030.9019,9121164  91% 9% 0% 1% †
C gcc5.721.945,0401914  89% 99% 63% 47% †
 n-body 
Erlang HiPE185.00185.0317,8281399  1% 0% 99% 1%
C gcc10.1910.194361490  0% 1% 1% 100%
 reverse-complement 
Erlang HiPE20.7110.53947,6881302  42% 75% 38% 43%
C gcc0.770.51250,784741  21% 18% 74% 43%
 mandelbrot 
Erlang HiPE590.43159.161,735,152534  94% 92% 94% 93%
C gcc19.445.0231,928694  96% 96% 100% 96%
 fasta-redux 
No program
C gcc0.020.02?1402  0% 0% 0% 100%

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

 4 : Are there other Erlang HiPE programs for these benchmarks?

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

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

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Erlang HiPE and C gcc 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 HiPE : concurrent real-time distributed fault-tolerant software 

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

All you wanted to know about the HiPE compile (but might have been afraid to ask)

The development of the HiPE system: design and experience report

Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]

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

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

Revised BSD license

  Home   Conclusions   License   Play