÷

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

This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each chart bar shows, for one unidentified benchmark, how much the fastest JavaScript V8 program used compared to the fastest C GNU gcc program.


 Step 2 : Are the JavaScript V8 programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

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

 JavaScript V8 used what fraction? used how many times more? 
Benchmark Time Memory Code
 regex-dna1/41/4
 k-nucleotide±1/6
 binary-trees1/2
 n-body49×±
 fannkuch15×15×1/2
 spectral-norm17×1/171/2
 fasta23×60×±
 reverse-complement29×1/2
 pidigits87×21×±

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

 Step 3 : Are the JavaScript V8 programs faster? Measurements.

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ≈ CPU Load ~ speed and size.

For each named benchmark, measurements of the fastest JavaScript V8 program are shown for comparison against measurements of the fastest C GNU gcc program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 regex-dna 
JavaScript V85.635.63211,488373  0% 0% 0% 100%
C GNU gcc25.0925.0984,4641525  0% 0% 0% 100%
 k-nucleotide 
JavaScript V8355.20355.19332,880390  0% 1% 0% 100%
C GNU gcc48.4448.45267,5322519  0% 0% 0% 100%
 binary-trees 
JavaScript V895.6695.67188,024467  0% 0% 0% 100%
C GNU gcc12.2512.2599,532850  0% 0% 1% 100%
 n-body 
JavaScript V8200.11200.1020,3121287  0% 0% 0% 100%
C GNU gcc23.5223.534121429  0% 0% 0% 100%
 fannkuch 
JavaScript V8707.22707.198,088488  0% 0% 0% 100%
C GNU gcc48.4448.48556937  0% 0% 0% 100%
 spectral-norm 
JavaScript V881.1581.1413,880311  0% 0% 0% 100%
C GNU gcc4.764.77236,980669  0% 0% 0% 100%
 fasta 
JavaScript V840.0840.0822,488923  0% 0% 0% 100%
C GNU gcc1.751.753761321  1% 1% 0% 100%
 reverse-complement 
JavaScript V839.4039.40317,988456  0% 0% 0% 100%
C GNU gcc1.371.37125,196722  0% 0% 1% 99%
 pidigits 
JavaScript V8235.04235.0421,172609  0% 0% 0% 100%
C GNU gcc2.722.711,012541  0% 4% 0% 100%
 mandelbrot 
JavaScript V8Failed
C GNU gcc0.100.11?879  0% 0% 0% 67%
 chameneos-redux
   No programs

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

Remember - those are just the fastest JavaScript V8 and C GNU gcc 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.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest JavaScript V8 and C GNU gcc 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 1.3.11.1 [console: dumb]

Home Page: V8 JavaScript Engine

Revised BSD license

  Home   Flawed   Fastest   License   Help