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/101/3
 fannkuch-redux1/6 1/2
 n-body1/5 ±
 spectral-norm1/4 1/2
 reverse-complement1/21/21/2
 k-nucleotide1/21/14±
 fasta± ±
 binary-trees±±±
 JavaScript V8 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/101/101/61/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.443.45584,372373  0% 1% 1% 100%
Erlang HiPE32.9632.97236,2881058  1% 0% 0% 100%
 fannkuch-redux 
JavaScript V875.5575.578,476539  1% 0% 0% 100%
Erlang HiPE456.42456.5813,3281038  1% 0% 0% 100%
 n-body 
JavaScript V835.8135.829,3041287  1% 0% 1% 100%
Erlang HiPE182.00182.0613,2521399  1% 0% 0% 100%
 spectral-norm 
JavaScript V815.7115.7110,536328  1% 0% 1% 100%
Erlang HiPE68.4768.5018,480747  1% 0% 0% 100%
 reverse-complement 
JavaScript V87.757.76404,052787  0% 1% 1% 100%
Erlang HiPE19.1519.17650,7601302  1% 0% 1% 100%
 k-nucleotide 
JavaScript V8128.05128.1976,4361249  0% 1% 1% 100%
Erlang HiPE292.20295.911,096,972932  1% 1% 1% 100%
 fasta 
JavaScript V821.9521.9752,068923  1% 1% 1% 100%
Erlang HiPE30.5230.5313,3161164  1% 2% 0% 100%
 binary-trees 
JavaScript V850.0750.15944,176467  0% 0% 1% 100%
Erlang HiPE37.2537.311,057,544441  0% 1% 1% 100%
 pidigits 
No program
Erlang HiPE0.910.9114,220512  3% 0% 2% 100%
 mandelbrot 
JavaScript V8Bad Output
Erlang HiPE2.392.4023,660534  1% 1% 0% 100%
 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.31.1 [console: dumb]

Home Page: V8 JavaScript Engine

Revised BSD license

  Home   Conclusions   License   Play