vs

 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
 binary-trees †1/2
 pidigits ±
 regex-dna1/21/2
 k-nucleotide1/2
 spectral-norm ±
 fannkuch-redux14× ±
 fasta15× ±
 n-body22× ±
 mandelbrot27× ±
 reverse-complement27×
 Erlang HiPE used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)12×22×27×27×

† 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
 binary-trees 
Erlang HiPE33.2633.30532,108441  0% 1% 1% 100% †
C gcc9.399.4099,424906  0% 72% 34% 100% †
 pidigits 
Erlang HiPE15.2315.2518,968512  0% 1% 0% 100%
C gcc2.492.49856448  0% 1% 0% 100%
 regex-dna 
Erlang HiPE38.7038.72169,8161058  1% 0% 0% 100%
C gcc5.375.38288,9842579  1% 1% 0% 100%
 k-nucleotide 
Erlang HiPE268.37271.50932,380932  0% 1% 1% 100%
C gcc35.2235.23126,7881535  0% 2% 1% 100%
 spectral-norm 
Erlang HiPE70.1270.1414,244747  1% 0% 0% 100%
C gcc7.857.85644569  0% 0% 1% 100%
 fannkuch-redux 
Erlang HiPE386.62386.7510,1841038  1% 0% 0% 100%
C gcc27.2627.273161183  0% 0% 1% 100%
 fasta 
Erlang HiPE49.2249.2511,1481164  1% 0% 0% 100%
C gcc3.293.292841261  0% 1% 1% 100%
 n-body 
Erlang HiPE217.95218.0210,4601399  1% 0% 0% 100%
C gcc9.919.923361490  0% 1% 1% 100%
 mandelbrot 
Erlang HiPE605.20605.61723,856534  1% 1% 1% 100%
C gcc22.5922.6030,848799  1% 0% 1% 100%
 reverse-complement 
Erlang HiPE20.1420.16574,9241302  1% 1% 1% 100%
C gcc0.740.75250,408741  1% 1% 0% 100%
 fasta-redux 
No program
C gcc0.020.03?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] [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