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
 spectral-norm ±
 pidigits ±
 fannkuch-redux13× ±
 k-nucleotide13×1/2
 fasta †17× 1/2
 n-body18× ±
 reverse-complement22×
 mandelbrot26× ±
 Erlang HiPE used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)13×18×26×26×

† 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 HiPE35.9110.42383,6441058  88% 82% 90% 85%
C gcc5.812.45314,2002579  71% 52% 45% 71%
 binary-trees 
Erlang HiPE71.4219.54908,280499  96% 89% 92% 91%
C gcc10.183.26160,856906  64% 76% 75% 99%
 spectral-norm 
Erlang HiPE71.1218.3928,684747  96% 97% 97% 97%
C gcc8.282.091,776569  100% 100% 100% 99%
 pidigits 
Erlang HiPE17.3215.8936,164512  82% 14% 8% 7%
C gcc1.721.731,996448  2% 1% 1% 100%
 fannkuch-redux 
Erlang HiPE470.74119.2920,3401038  100% 99% 98% 99%
C gcc35.659.101,516910  99% 96% 97% 100%
 k-nucleotide 
Erlang HiPE398.80152.521,126,548932  59% 79% 57% 69%
C gcc35.0511.64190,2242280  59% 96% 96% 53%
 fasta 
Erlang HiPE34.5932.9921,6841164  84% 14% 2% 6% †
C gcc5.361.972,4721914  61% 34% 78% 99% †
 n-body 
Erlang HiPE193.28193.3319,3961399  1% 1% 1% 100%
C gcc10.5010.509681490  100% 0% 1% 1%
 reverse-complement 
Erlang HiPE21.1610.83859,3001302  33% 92% 30% 42%
C gcc0.750.49251,716741  33% 20% 31% 72%
 mandelbrot 
Erlang HiPE501.64131.961,370,444613  95% 95% 96% 95%
C gcc19.775.1332,240694  95% 96% 100% 96%
 fasta-redux 
No program
C gcc0.020.03?1321  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] [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