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++ g++ 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++ g++ 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-trees1/2
 regex-dna
 pidigits ±
 fannkuch-redux ±
 spectral-norm ±
 fasta12× ±
 reverse-complement15×1/2
 k-nucleotide17×±
 n-body25× ±
 mandelbrot29× 1/2
 Erlang HiPE used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)10×17×29×29×

± 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++ g++ program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 binary-trees 
Erlang HiPE46.2612.88617,852499  99% 88% 88% 86%
C++ g++15.895.05179,668892  73% 70% 97% 77%
 regex-dna 
Erlang HiPE39.8211.17283,5521058  93% 90% 89% 86%
C++ g++5.383.83171,652695  1% 65% 76% 2%
 pidigits 
Erlang HiPE14.9414.9425,040559  1% 1% 1% 100%
C++ g++2.682.681,452682  0% 0% 1% 100%
 fannkuch-redux 
Erlang HiPE405.52102.5312,9441038  100% 98% 98% 100%
C++ g++50.0312.881,0361440  99% 99% 100% 99%
 spectral-norm 
Erlang HiPE71.4518.1920,904747  98% 98% 98% 99%
C++ g++7.972.009241044  100% 100% 100% 100%
 fasta 
Erlang HiPE49.8749.8824,1161164  1% 1% 1% 99%
C++ g++4.214.228721286  0% 100% 0% 1%
 reverse-complement 
Erlang HiPE21.0811.00844,9201302  43% 50% 51% 50%
C++ g++1.150.75247,0082275  11% 87% 30% 29%
 k-nucleotide 
Erlang HiPE351.76124.55980,820932  69% 81% 58% 77%
C++ g++23.447.22139,1361252  76% 76% 78% 97%
 n-body 
Erlang HiPE225.14225.2112,9481399  100% 1% 1% 1%
C++ g++9.089.093361544  0% 100% 1% 0%
 mandelbrot 
Erlang HiPE644.02169.77883,836534  95% 97% 94% 95%
C++ g++23.465.8932,1801017  100% 100% 100% 100%
 fasta-redux 
No program
C++ g++0.030.03?1474  0% 0% 25% 100%

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

Remember - those are just the fastest Erlang HiPE and C++ g++ 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++ g++ 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