JavaScript engine benchmarks: Nashorn vs V8 vs Spidermonkey

Environment:

Macbook Air 11′ Mid 2012

Processor: 1.7 GHz Intel Core i5

Memory: 8 GB 1600 MHz  DDR3OS X 10.9 (Maverick)

Test Frameworks:

Octane 2.0 http://octane-benchmark.googlecode.com/svn/latest/index.html

SunSpider 1.0.2 http://www.webkit.org/perf/sunspider/sunspider.html

JavaScript Engines:

JavaFX 8 (build 1.8.0-ea-b118) WebView (Nashorn)

Google Chrome 31.0.1650.63 (V8)

Mozilla Firfox 25.0.1 (Spidermonkey)

Benchmarks:

Octane 2.0

Nashorn

Score: 9307

Richards: 13037
Deltablue: 12483
Crypto: 15042
Raytrace: 16411
EarleyBoyer: 21232
Regexp: 1013
Splay: 7395
SplayLatency: 4596
NavierStrokes: 14161
pdf.js: 7918
Mandreel: 7902
MandreelLatency: 3693
GB Emulator: 12663
CodeLoad: 9070
Box2DWeb : 12783
zlib: 12896
Typescript: 16212

V8

Score: 14474

Richards: 20673
Deltablue: 21541
Crypto: 17650
Raytrace: 31598
EarleyBoyer: 28439
Regexp: 2752
Splay: 7758
SplayLatency: 15295
NavierStokes: 19421
pdf.js: 12779
Mandreel: 1421
MandreelLatency: 11567
GB Emulator: 19491
CodeLoad: 11828
Box2DWeb: 13329
zlib: 12958
Typescript: 14335

Spidermonkey

Score: 10066

Richards: 13447
Deltablue: 12291
Crypto: 14056
Raytrace: 13542
EarleyBoyer: 10190
Regexp: 1110
Splay: 9160
SplayLatency: 4258
NavierStokes: 17737
pdf.js: 6881
Mandreel: 9403
MandreelLatency: 12526
GB Emulator: 22469
CodeLoad: 11848
Box2DWeb: 10833
zlib: 32793
Typescript: 5924

SunSpider 1.0.2

Nashorn

============================================
RESULTS (means and 95% confidence intervals)
——————————————–
Total:                 256.2ms +/- 5.6%
——————————————–

  3d:                   38.4ms +/- 7.1%
    cube:               14.6ms +/- 13.1%
    morph:              10.6ms +/- 16.0%
    raytrace:           13.2ms +/- 10.1%

  access:               19.2ms +/- 4.2%
    binary-trees:        1.9ms +/- 11.9%
    fannkuch:            7.9ms +/- 2.9%
    nbody:               4.5ms +/- 11.2%
    nsieve:              4.9ms +/- 10.8%

  bitops:               14.5ms +/- 7.4%
    3bit-bits-in-byte:   2.0ms +/- 0.0%
    bits-in-byte:        2.8ms +/- 16.1%
    bitwise-and:         4.2ms +/- 7.2%
    nsieve-bits:         5.5ms +/- 14.0%

  controlflow:           2.6ms +/- 26.6%
    recursive:           2.6ms +/- 26.6%

  crypto:               24.7ms +/- 10.3%
    aes:                11.6ms +/- 13.1%
    md5:                 7.5ms +/- 13.7%
    sha1:                5.6ms +/- 15.0%

  date:                 29.1ms +/- 14.8%
    format-tofte:       16.5ms +/- 19.0%
    format-xparb:       12.6ms +/- 17.0%

  math:                 25.2ms +/- 5.8%
    cordic:              4.8ms +/- 13.7%
    partial-sums:       17.2ms +/- 8.9%
    spectral-norm:       3.2ms +/- 20.5%

  regexp:               10.6ms +/- 8.5%
    dna:                10.6ms +/- 8.5%

  string:               91.9ms +/- 11.6%
    base64:              7.9ms +/- 16.8%
    fasta:              16.7ms +/- 19.7%
    tagcloud:           18.1ms +/- 14.4%
    unpack-code:        39.0ms +/- 11.3%
    validate-input:     10.2ms +/- 16.4%

V8

============================================
RESULTS (means and 95% confidence intervals)
——————————————–
Total:                 220.8ms +/- 2.6%
——————————————–

  3d:                   34.8ms +/- 6.3%
    cube:               13.2ms +/- 8.0%
    morph:               7.7ms +/- 6.3%
    raytrace:           13.9ms +/- 7.8%

  access:               19.2ms +/- 4.6%
    binary-trees:        2.0ms +/- 0.0%
    fannkuch:            9.7ms +/- 6.1%
    nbody:               3.4ms +/- 10.9%
    nsieve:              4.1ms +/- 9.9%

  bitops:               16.8ms +/- 4.4%
    3bit-bits-in-byte:   2.0ms +/- 0.0%
    bits-in-byte:        5.5ms +/- 6.8%
    bitwise-and:         4.1ms +/- 5.5%
    nsieve-bits:         5.2ms +/- 8.7%

  controlflow:           3.1ms +/- 7.3%
    recursive:           3.1ms +/- 7.3%

  crypto:               22.3ms +/- 6.9%
    aes:                 7.9ms +/- 9.0%
    md5:                 7.1ms +/- 12.1%
    sha1:                7.3ms +/- 8.1%

  date:                 21.8ms +/- 6.1%
    format-tofte:       11.9ms +/- 10.4%
    format-xparb:        9.9ms +/- 6.3%

  math:                 18.7ms +/- 7.4%
    cordic:              4.4ms +/- 11.4%
    partial-sums:       10.4ms +/- 12.2%
    spectral-norm:       3.9ms +/- 5.8%

  regexp:                8.7ms +/- 5.5%
    dna:                 8.7ms +/- 5.5%

  string:               75.4ms +/- 3.7%
    base64:              7.0ms +/- 9.6%
    fasta:               7.6ms +/- 6.6%
    tagcloud:           27.0ms +/- 3.7%
    unpack-code:        25.5ms +/- 4.8%
    validate-input:      8.3ms +/- 9.1%

Spidermonkey

============================================
RESULTS (means and 95% confidence intervals)
——————————————–
Total:                 246.5ms +/- 3.6%
——————————————–

  3d:                   37.8ms +/- 8.3%
    cube:               15.1ms +/- 8.5%
    morph:               6.4ms +/- 7.8%
    raytrace:           16.3ms +/- 9.0%

  access:               24.0ms +/- 7.7%
    binary-trees:        3.1ms +/- 13.1%
    fannkuch:            9.3ms +/- 10.3%
    nbody:               4.3ms +/- 8.0%
    nsieve:              7.3ms +/- 12.3%

  bitops:               12.2ms +/- 4.6%
    3bit-bits-in-byte:   1.7ms +/- 28.4%
    bits-in-byte:        3.0ms +/- 0.0%
    bitwise-and:         2.6ms +/- 14.2%
    nsieve-bits:         4.9ms +/- 4.6%

  controlflow:           3.0ms +/- 0.0%
    recursive:           3.0ms +/- 0.0%

  crypto:               20.7ms +/- 2.8%
    aes:                10.3ms +/- 3.4%
    md5:                 5.8ms +/- 7.8%
    sha1:                4.6ms +/- 8.0%

  date:                 35.5ms +/- 19.9%
    format-tofte:       18.4ms +/- 28.7%
    format-xparb:       17.1ms +/- 32.3%

  math:                 14.5ms +/- 3.5%
    cordic:              3.4ms +/- 10.9%
    partial-sums:        8.0ms +/- 4.2%
    spectral-norm:       3.1ms +/- 7.3%

  regexp:               17.7ms +/- 17.6%
    dna:                17.7ms +/- 17.6%

  string:               81.1ms +/- 13.3%
    base64:              7.9ms +/- 9.0%
    fasta:               8.4ms +/- 5.9%
    tagcloud:           22.4ms +/- 22.1%
    unpack-code:        30.2ms +/- 20.8%
    validate-input:     12.2ms +/- 56.6%

About these ads
This entry was posted in javascript and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s