/mobile Handheld Friendly website

vs

 1 : Are the JavaScript V8 programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest JavaScript V8 program used compared to the fastest Erlang HiPE 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 JavaScript V8 programs faster? Approximately.

Each table row shows, for one named benchmark, how much the fastest JavaScript V8 program used compared to the fastest Erlang HiPE program.

(Memory use is only compared for tasks that require memory to be allocated.)

 JavaScript V8 used what fraction? used how many times more? 
Benchmark Time Memory Code
 regex-dna1/261/3
 fannkuch-redux1/6 1/2
 n-body1/3 ±
 k-nucleotide1/31/17±
 spectral-norm1/3 1/2
 reverse-complement1/21/21/2
 fasta1/2 ±
 binary-trees±±±
 JavaScript V8 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/261/261/41/31/2±±

± read the measurements and then read the program source code.

 3 : Are the JavaScript V8 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 JavaScript V8 program are shown for comparison against measurements of the fastest Erlang HiPE program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 regex-dna 
JavaScript V83.813.83395,464373  0% 0% 1% 100%
Erlang HiPE98.3798.41210,9201058  0% 0% 0% 100%
 fannkuch-redux 
JavaScript V878.8878.907,452539  0% 1% 1% 100%
Erlang HiPE443.19443.3311,6241038  0% 0% 0% 100%
 n-body 
JavaScript V836.3136.329,6441287  0% 0% 0% 100%
Erlang HiPE119.80119.8412,1081399  0% 0% 0% 100%
 k-nucleotide 
JavaScript V898.4398.5270,0761249  0% 1% 1% 100%
Erlang HiPE292.66296.501,160,884932  0% 0% 0% 100%
 spectral-norm 
JavaScript V815.7015.719,280328  0% 1% 1% 100%
Erlang HiPE46.3546.3714,180747  0% 0% 0% 100%
 reverse-complement 
JavaScript V88.748.75269,748787  0% 1% 1% 100%
Erlang HiPE19.2019.23632,6161302  0% 0% 0% 100%
 fasta 
JavaScript V817.6617.679,472791  0% 1% 0% 100%
Erlang HiPE29.0729.0911,9161164  0% 0% 0% 100%
 binary-trees 
JavaScript V846.1846.25584,248467  0% 1% 0% 100%
Erlang HiPE57.3557.44647,288499  0% 0% 0% 100%
 pidigits 
No program
Erlang HiPE0.880.8912,092512  0% 0% 0% 100%
 mandelbrot 
JavaScript V8Bad Output
Erlang HiPE1.191.3917,384534  15% 0% 3% 99%
 fasta-redux
   No programs

 4 : Are there other JavaScript V8 programs for these benchmarks?

Remember - those are just the fastest JavaScript V8 and Erlang HiPE programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for JavaScript V8.

Maybe one of those other JavaScript V8 programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest JavaScript V8 and Erlang HiPE 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.

 JavaScript V8 : web-browser embedded scripting 

V8 version 3.25.20 [console: dumb]

Home Page: V8 JavaScript Engine

Revised BSD license

  Home   Conclusions   License   Play