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 Java 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 Java 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/3±
 binary-trees±1/2
 pidigits 1/2
 spectral-norm ±
 fannkuch-redux ±
 reverse-complement±
 n-body ±
 k-nucleotide12×±1/2
 mandelbrot23× ±
 fasta †27× 1/2
 Erlang HiPE used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±12×24×27×

† 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 Java program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 regex-dna 
Erlang HiPE39.8211.17283,5521058  93% 90% 89% 86%
Java25.798.80729,244929  77% 80% 72% 66%
 binary-trees 
Erlang HiPE46.2612.88617,852499  99% 88% 88% 86%
Java19.645.88513,180926  95% 79% 87% 76%
 pidigits 
Erlang HiPE14.9414.9425,040559  1% 1% 1% 100%
Java4.174.0726,324938  3% 3% 4% 96%
 spectral-norm 
Erlang HiPE71.4518.1920,904747  98% 98% 98% 99%
Java16.534.3026,476950  99% 96% 95% 96%
 fannkuch-redux 
Erlang HiPE405.52102.5312,9441038  100% 98% 98% 100%
Java67.5617.1325,8041282  100% 98% 99% 98%
 reverse-complement 
Erlang HiPE21.0811.00844,9201302  43% 50% 51% 50%
Java2.911.44308,0601661  47% 31% 85% 43%
 n-body 
Erlang HiPE225.14225.2112,9481399  100% 1% 1% 1%
Java24.3424.3124,1561424  1% 1% 1% 100%
 k-nucleotide 
Erlang HiPE351.76124.55980,820932  69% 81% 58% 77%
Java35.2710.611,199,1841844  79% 78% 90% 88%
 mandelbrot 
Erlang HiPE628.04162.01635,812613  98% 97% 97% 97%
Java27.797.1287,832796  97% 99% 97% 97%
 fasta 
Erlang HiPE49.8749.8824,1161164  1% 1% 1% 99% †
Java5.901.8231,6002457  80% 83% 80% 82% †
 fasta-redux 
No program
Java0.220.20?1443  0% 10% 90% 11%

† 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 Java 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 Java 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