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

† 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 HiPE35.9110.42383,6441058  88% 82% 90% 85%
Java24.708.24761,724929  68% 73% 77% 83%
 binary-trees 
Erlang HiPE71.4219.54908,280499  96% 89% 92% 91%
Java8.005.67356,656583  39% 39% 36% 32%
 spectral-norm 
Erlang HiPE71.1218.3928,684747  96% 97% 97% 97%
Java16.534.2832,696950  96% 96% 96% 99%
 pidigits 
Erlang HiPE17.3215.8936,164512  82% 14% 8% 7%
Java3.223.1233,528938  3% 2% 80% 21%
 fannkuch-redux 
Erlang HiPE470.74119.2920,3401038  100% 99% 98% 99%
Java68.6417.4133,0321282  98% 98% 99% 99%
 reverse-complement 
Erlang HiPE21.1610.83859,3001302  33% 92% 30% 42%
Java2.681.27315,2961661  41% 48% 34% 92%
 n-body 
Erlang HiPE193.28193.3319,3961399  1% 1% 1% 100%
Java22.6822.6630,0361424  97% 3% 0% 1%
 k-nucleotide 
Erlang HiPE398.80152.521,126,548932  59% 79% 57% 69%
Java38.6611.291,118,2881844  83% 97% 82% 82%
 fasta 
Erlang HiPE34.5932.9921,6841164  84% 14% 2% 6% †
Java5.602.1939,3682457  58% 72% 66% 61% †
 mandelbrot 
Erlang HiPE501.64131.961,370,444613  95% 95% 96% 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 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