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

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

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
 pidigits ±
 k-nucleotide11×1/2
 fannkuch-redux11× ±
 spectral-norm12× ±
 reverse-complement19×
 n-body26× ±
 fasta †31× 1/2
 mandelbrot38× ±
 Erlang HiPE used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)12×26×38×38×

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

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

 3 : Measurements - Are the Erlang HiPE 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 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 HiPE37.3011.35250,6401058  86% 88% 78% 79%
C gcc6.342.67290,7922579  96% 76% 84% 67%
 binary-trees 
Erlang HiPE48.5113.33534,160499  93% 90% 95% 88%
C gcc9.682.97105,024906  93% 77% 87% 72%
 pidigits 
Erlang HiPE16.8415.8328,596512  14% 77% 2% 16%
C gcc2.492.502,140448  100% 0% 1% 0%
 k-nucleotide 
Erlang HiPE376.32129.78868,000932  62% 69% 93% 68%
C gcc36.5812.35131,9041535  37% 71% 95% 94%
 fannkuch-redux 
Erlang HiPE428.93110.3014,6761038  99% 98% 99% 98%
C gcc39.4910.061,388910  99% 99% 95% 100%
 spectral-norm 
Erlang HiPE83.0324.2920,116747  85% 85% 86% 86%
C gcc7.861.981,704569  99% 100% 99% 99%
 reverse-complement 
Erlang HiPE22.1211.46854,5921302  49% 45% 69% 37%
C gcc0.860.60251,368741  95% 84% 44% 15%
 n-body 
Erlang HiPE269.21269.3027,7761399  53% 1% 1% 47%
C gcc10.3810.397361490  0% 100% 1% 1%
 fasta 
Erlang HiPE58.3556.2630,3641164  33% 54% 1% 18% †
C gcc5.291.812,3521914  89% 53% 54% 100% †
 mandelbrot 
Erlang HiPE842.16215.67632,224613  98% 98% 98% 98%
C gcc22.405.6128,988799  100% 100% 100% 100%
 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 18 [erts-7.0] [source] [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