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 Python 3 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 Python 3 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
 spectral-norm1/60 ±
 fannkuch-redux1/36 ±
 n-body1/24 ±
 binary-trees1/13±±
 fasta1/11 ±
 regex-dna1/7±
 k-nucleotide1/51/11
 reverse-complement±1/2
 JavaScript V8 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/601/601/291/121/61/3±

± 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 Python 3 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 spectral-norm 
JavaScript V815.7015.718,812328  0% 1% 1% 100%
Python 3939.78940.065,004328  0% 1% 0% 100%
 fannkuch-redux 
JavaScript V872.9072.936,684539  0% 1% 0% 100%
Python 32,649.782,655.584,192385  0% 0% 0% 100%
 n-body 
JavaScript V842.5242.539,1001527  1% 1% 1% 100%
Python 31,006.751,007.024,2521181  1% 0% 0% 100%
 binary-trees 
JavaScript V840.2640.32470,888467  1% 0% 0% 100%
Python 3506.90507.35688,448626  1% 1% 1% 100%
 fasta 
JavaScript V822.3122.3332,244923  0% 1% 1% 100%
Python 3234.62237.784,316792  1% 1% 1% 100%
 regex-dna 
JavaScript V83.503.51592,152373  0% 1% 3% 100%
Python 323.9223.94247,788424  0% 1% 1% 100%
 k-nucleotide 
JavaScript V8101.48101.5840,5481249  0% 1% 1% 100%
Python 3490.63492.77431,792647  0% 1% 1% 100%
 reverse-complement 
JavaScript V87.817.82312,740787  0% 1% 1% 100%
Python 36.546.56781,140325  1% 0% 1% 100%
 pidigits 
No program
Python 30.160.16?256  0% 0% 0% 100%
 mandelbrot 
JavaScript V8Bad Output
Python 37.287.4096,516777  0% 1% 1% 100%
 fasta-redux
   No programs

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

Remember - those are just the fastest JavaScript V8 and Python 3 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 Python 3 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.29.59 [console: dumb]

Home Page: V8 JavaScript Engine

Revised BSD license

  Home   Conclusions   License   Play