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

† 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 HiPE34.609.60434,1721058  90% 92% 91% 88%
Java24.708.24761,724929  68% 73% 77% 83%
 binary-trees 
Erlang HiPE68.8219.05965,168499  93% 93% 87% 89%
Java21.116.48522,972926  81% 86% 89% 73%
 spectral-norm 
Erlang HiPE70.4418.0326,640747  97% 98% 98% 98%
Java16.534.2832,696950  96% 96% 96% 99%
 pidigits 
Erlang HiPE16.4315.9429,812512  67% 32% 2% 3%
Java3.223.1233,528938  3% 2% 80% 21%
 fannkuch-redux 
Erlang HiPE487.44124.5915,7321038  99% 99% 94% 100%
Java68.6417.4133,0321282  98% 98% 99% 99%
 n-body 
Erlang HiPE185.00185.0317,8281399  1% 0% 99% 1%
Java22.6822.6630,0361424  97% 3% 0% 1%
 reverse-complement 
Erlang HiPE20.7110.53947,6881302  42% 75% 38% 43%
Java2.681.27315,2961661  41% 48% 34% 92%
 k-nucleotide 
Erlang HiPE366.79138.451,019,072932  61% 56% 65% 86%
Java38.6611.291,118,2881844  83% 97% 82% 82%
 fasta 
Erlang HiPE30.9030.9019,9121164  91% 9% 0% 1% †
Java5.602.1939,3682457  58% 72% 66% 61% †
 mandelbrot 
Erlang HiPE572.20149.611,125,164613  96% 95% 97% 95%
Java24.246.2788,992796  96% 97% 97% 98%
 fasta-redux 
No program
Java0.220.19?1443  95% 10% 10% 10%

† 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] [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