/mobile Handheld Friendly website

÷

 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 Java 7 -server program.


Look at speed another way - look at a box plot of Time-used data.

 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 Java 7 -server program.

 JavaScript V8 used what fraction? used how many times more? 
Benchmark Time Memory Code
 regex-dna1/61/21/3
 spectral-norm±1/2±
 fannkuch-redux±1/31/2
 n-body1/3±
 binary-trees±±
 fasta1/21/2
 reverse-complement1/2±
 k-nucleotide10×±1/6
 pidigits53×±1/3
 JavaScript V8 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/61/6±15×53×

± 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 Java 7 -server program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 regex-dna 
JavaScript V83.963.97257,684373  1% 1% 0% 100%
Java 7 -server22.9523.00561,4361284  0% 0% 0% 100%
 spectral-norm 
JavaScript V815.7615.767,524373  0% 0% 0% 100%
Java 7 -server16.9917.0018,244514  0% 0% 0% 100%
 fannkuch-redux 
JavaScript V878.6478.665,856539  0% 0% 0% 100%
Java 7 -server69.9669.9917,0201282  0% 0% 0% 100%
 n-body 
JavaScript V840.8640.875,9561527  0% 0% 0% 100%
Java 7 -server22.5122.5116,9401424  0% 0% 0% 100%
 binary-trees 
JavaScript V843.1843.23598,816467  0% 0% 0% 100%
Java 7 -server16.4416.48499,416603  0% 0% 0% 100%
 fasta 
JavaScript V819.0919.107,720791  0% 0% 0% 100%
Java 7 -server5.185.1918,0441507  1% 0% 1% 100%
 reverse-complement 
JavaScript V811.9811.99261,324498  0% 0% 0% 100%
Java 7 -server1.791.83514,512745  2% 1% 2% 100%
 k-nucleotide 
JavaScript V8287.82288.29421,488423  0% 0% 0% 100%
Java 7 -server29.0229.10521,8202431  0% 0% 0% 100%
 pidigits 
JavaScript V8319.45319.6843,556609  1% 0% 0% 100%
Java 7 -server6.006.0153,7681826  1% 0% 0% 100%
 fasta-redux 
No program
Java 7 -server0.120.12?1443  0% 8% 0% 100%
 mandelbrot 
JavaScript V8Bad Output
Java 7 -server0.190.19?796  5% 0% 0% 95%

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

Remember - those are just the fastest JavaScript V8 and Java 7 -server 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 Java 7 -server 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.11.0 [console: dumb]

Home Page: V8 JavaScript Engine

Revised BSD license

  Home   Conclusions   License   Help