A while back I put together a quick prime counting test for Flash and Silverlight.

As someone noted, this test runs remarkably fast in Chrome, thanks to the V8 JavaScript engine.

Here’s the JavaScript version of the test – note that you cannot easily run this in IE or Firefox for larger values, because the script times out, though you can configure your browser to prevent this.

Here are my figures on Vista (lower is better):

Microsoft Silverlight 2.0 beta 2: 0.464 secs JavaScript Google Chrome: 1.4 secs Adobe Flash: 1.667 secs JavaScript Mozilla Firefox 3: 6.046 secs JavaScript Microsoft IE7: 11.916 secs

I can’t easily test IE8 as I have it installed in a virtual machine.