<< back to blog

Performance of Silverlight vs Flash vs Javascript vs TraceMonkey

ajax ~ javascript

30 Aug, 2008

Tim Anderson does a side-by-side comparison of Silverlight and Flash for calculating prime numbers. He has written the program in both platforms. I thought I'd add a Javascript version into the mix too. The results were as follows:

Calculating 1,000,000 primes

  • Silverlight: 0.42 secs
  • Flash: 1.22 secs
  • Minefield 3.1 Javascript: 4.75 secs
  • Safari Javascript: 5.75 secs
  • Firefox 2 Javascript: 7.08 secs

I actually thought that Minefield (Firefox 3.1 with TraceMonkey Jit) would be up there with Flash and Silverlight. I guess that the JS Jit works on hot paths and therefore couldn't find much to do?

UPDATE

@Shi posted another version in the comments with much improved times:

  • Minefield 3.1 Javascript: 1.88 secs
  • Safari Javascript: 4.99 secs

That's more like it!

You may also like...
Performance of Silverlight vs Flash vs Javascript vs TraceMonkey
What the $*#! is Squilbo?
Yahoo! GUI Design Patterns
ExtJS + Coolite + Mono + OSX
Small gripes with ASP.NET PostBack and Ajax
Component vendors unsure about ASP.NET MVC?
NHibernate or Ajax fans at TechEd Barcelona?

kick it on DotNetKicks.com
blog comments powered by Disqus