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/48 ±
 fannkuch-redux1/31 ±
 n-body1/26 ±
 binary-trees1/10±±
 fasta1/7 ±
 regex-dna1/7±
 k-nucleotide1/41/6
 reverse-complement±1/3
 JavaScript V8 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/481/481/281/81/51/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 Python 3 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 spectral-norm 
JavaScript V815.7115.7116,472328  0% 0% 1% 100%
Python 3746.94747.206,468328  1% 0% 0% 100%
 fannkuch-redux 
JavaScript V875.2275.248,364539  0% 0% 1% 100%
Python 32,333.002,333.785,416385  1% 0% 0% 100%
 n-body 
JavaScript V835.9035.9110,4921287  1% 0% 1% 100%
Python 3932.49932.795,5721181  1% 0% 0% 100%
 binary-trees 
JavaScript V849.0949.17925,688467  1% 1% 0% 100%
Python 3479.82480.361,123,040626  0% 1% 1% 100%
 fasta 
JavaScript V821.8821.9154,016923  1% 1% 0% 100%
Python 3156.10160.135,572792  1% 0% 0% 100%
 regex-dna 
JavaScript V83.403.41491,468373  1% 1% 1% 100%
Python 323.0823.19257,976478  0% 1% 1% 100%
 k-nucleotide 
JavaScript V895.2795.3771,2801249  1% 0% 0% 100%
Python 3372.03374.89456,532647  0% 1% 1% 100%
 reverse-complement 
JavaScript V87.397.40397,064787  0% 1% 0% 100%
Python 35.986.001,008,592325  0% 1% 1% 100%
 pidigits 
No program
Python 30.130.14?256  0% 0% 0% 100%
 mandelbrot 
JavaScript V8Bad Output
Python 37.537.54132,164777  1% 0% 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.30.6 [console: dumb]

Home Page: V8 JavaScript Engine

Revised BSD license

  Home   Conclusions   License   Play