I wrote a particularly computationally intense GlowScript/WebGL
program, a visualization of a hard-sphere gas, with a continually
updated distribution of speeds that, averaged over time, approximates
the theoretical prediction:
http://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/HardSphereGas
It was rather sluggish compared to a similar VPython program, but the
VPython version benefited from the use of the fast parallel processing
capabilities of the Python numpy numerical library, which runs at the
speed of C, so the sluggishness was not totally unexpected.
But then to my great surprise I saw the new program running about
twice as fast on my Windows laptop as on my Windows desktop machine,
despite their comparable speeds (2.2 GHz desktop, 2.4 GHz laptop, and
the desktop has 4 cores, the laptop only 2). This seems to be related
to the fact that Chrome exists only in a 32-bit version, and my
desktop machine is 64-bit Windows 7 whereas my laptop is 32-bit
Windows 7. I thought naively that 32-bit programs ran on 64-bit
Windows at the same speed as they would run on 32-bit machines, but
maybe that isn't the case?
Strangely, on my desktop machine the program runs twice as fast in
Firefox as in Chrome, although my Firefox is also 32-bit. The program
also runs at this faster speed on my 2.4 GHz Macbook Pro in Safari.
The odd man out is Chrome on 64-bit Windows.
Bruce