/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/31/3
 fannkuch-redux±1/31/3
 spectral-norm1/21/3
 binary-trees±±
 n-body±±
 fasta1/2
 k-nucleotide±1/6
 reverse-complement1/21/2
 pidigits51×±1/2
 JavaScript V8 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/61/618×51×

± 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 V84.194.20202,952373  0% 0% 0% 100%
Java 7 -server23.5323.56555,8081284  0% 0% 0% 100%
 fannkuch-redux 
JavaScript V880.5280.554,756472  0% 0% 0% 100%
Java 7 -server71.2671.2913,3801282  0% 0% 0% 100%
 spectral-norm 
JavaScript V833.1333.156,884311  0% 0% 0% 100%
Java 7 -server15.9916.0014,224950  0% 0% 0% 100%
 binary-trees 
JavaScript V838.7938.83393,256467  0% 0% 0% 100%
Java 7 -server14.1314.17483,284603  0% 0% 0% 100%
 n-body 
JavaScript V885.8685.9213,0241287  0% 0% 0% 100%
Java 7 -server24.2224.2313,5961424  0% 0% 0% 100%
 fasta 
JavaScript V819.8919.9032,736923  0% 0% 1% 100%
Java 7 -server5.035.0314,5801507  1% 1% 0% 100%
 k-nucleotide 
JavaScript V8274.79274.93332,832423  0% 0% 0% 100%
Java 7 -server33.0233.10436,7762431  0% 0% 0% 100%
 reverse-complement 
JavaScript V817.3817.40321,684456  0% 0% 0% 100%
Java 7 -server1.881.90510,948745  0% 0% 2% 100%
 pidigits 
JavaScript V8277.87278.0724,088609  0% 1% 0% 100%
Java 7 -server5.445.4416,380938  1% 0% 0% 100%
 fasta-redux 
No program
Java 7 -server0.110.12?1443  27% 0% 0% 100%
 mandelbrot 
JavaScript V8Bad Output
Java 7 -server0.220.22308802  9% 0% 0% 100%

 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.9.5 [console: dumb]

Home Page: V8 JavaScript Engine

Revised BSD license

  Home   Conclusions   License   Help