jsmem - JavaScript memory benchmark results

Benchmark page · blog entry

Browser Comparison

Here are the results of various browsers running on the same system: a Core 2 Duo E8500 (3.16 GHz). Bandwidth values are in GB/second. Entries are sorted by highest bandwidth.

Browser OS L1 L2 Main
Memory
Chrome 15.0.874.102 beta, typed arrays Windows XP 32-bit 14.0 11.75 5.23
Firefox 8.0 beta, typed arrays Windows XP 32-bit 4.06 4.0 3.7
Firefox 4.0b11, typed arrays Windows XP 32-bit 3.4 3.28 3.15
Firefox 4.0b11 Windows XP 32-bit 3.2 3.14 3.02
Midori 0.2.9 Linux 64-bit 2.1 2.09 2.03
Opera 11 Windows XP 32-bit 1.73 1.69 1.64
Safari 5.0.3 Windows XP 32-bit 1.53 1.63 1.59
Chrome 10.0.648.82 Windows XP 32-bit 1.5 0.8 0.4
Chrome 10.0.648.82 Linux 64-bit 0.55 0.35 0.2
Firefox 3.6.13 Windows XP 32-bit 0.75 0.72 0.72
IE 8 Windows XP 32-bit 0.085 0.085 0.085
C version Linux 64-bit 34.9 21.3 5.3

The real bandwith of this system is 34.9/21.3/5.3 GB/sec as measured with a C version of the benchmark. Before testing Chrome 15, my conclusion was:
The best JavaScript result is about 60% of that in main memory, but only 10% in the L1 cache. So there's a lot of room for improvements.
This has changed now - with typed arrays, Chrome 15 gets the same performance as C in main memory, and 40-50% in the caches.


Different Systems

Normally, only the best result for each system is included.

CPU OS Browser L1 L2 L3 Main
Memory
Phenom X6 1090T, 3600 MHz? Linux 64-Bit Midori 0.2.9 2.22 2.17 2.13 2.04
AMD Turion X2 TL-62, 2.1 GHz Windows XP 32-bit Firefox 4.0b11 1.66 1.22 - 1.14
AMD Turion X2 TL-62, 2.1 GHz Linux 64-bit Midori 0.2.9 1.0 0.93 - 0.9

If you have interesting results to share, please mail me the raw results and your system info (to chbreitkopf@gmail.com). In particular, I would like to see some results from IE 9.


Copyright © 2011 Christoph Breitkopf.