{"id":2473,"date":"2010-04-16T15:17:22","date_gmt":"2010-04-16T14:17:22","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/2473-silverlight-4-vs-silverlight-3-a-little-bit-faster-2.html"},"modified":"2010-04-16T15:17:22","modified_gmt":"2010-04-16T14:17:22","slug":"silverlight-4-vs-silverlight-3-a-little-bit-faster-2","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/2473-silverlight-4-vs-silverlight-3-a-little-bit-faster-2.html","title":{"rendered":"Silverlight 4 vs Silverlight 3: a little bit faster?"},"content":{"rendered":"<p>Microsoft\u2019s Scott Guthrie spoke of \u201ctwice as fast performance\u201d in the newly-released Silverlight 4, thanks to a new just-in-time compiler.<\/p>\n<p>Performance is a hard thing to nail down. Maybe he meant that compilation is twice as fast? I\u2019m not sure; but I tried a couple of quick tests.<\/p>\n<p>First, I looked at my <a href=\"http:\/\/www.itwriting.com\/primetest\/index.html\" target=\"_blank\">Primes test<\/a>. Version 3 running in Windows Vista took around 0.40 seconds (the exact figure varies on each run, thanks to background processes or other factors). I then upgraded to version 4.0. No significant difference, on average over several runs. I used Vista because I\u2019d already upgraded my Windows 7 install.<\/p>\n<p>Next I tried <a href=\"http:\/\/bubblemark.com\/sl3\/TestPage.html\" target=\"_blank\">Bubblemark<\/a>. I maxed it out at 128 bubbles. On Vista with Silverlight 3 I got about 240 fps; on the same machine with Silverlight 4 about 260fps; about 8%.<\/p>\n<p><a href=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2010\/04\/image9.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2010\/04\/image_thumb9.png\" border=\"0\" alt=\"image\" width=\"404\" height=\"286\" \/><\/a><\/p>\n<p>Next I tried on an Apple Mac. My Mac Mini is less powerful, though not that bad, an Intel 1.83 Ghz Core Duo. On the Prime test I got 0.54 secs before, and 0.50 secs after the upgrade to 4.0, about 7.5% improvement. On Bubblemark, it was only 24 fps before and after.<\/p>\n<p>I guess the vast difference in graphics performance is also interesting. It is not just Mac vs Windows; the Nvidia GeForce 6800 on the PC is more powerful than whatever is in the Mac Mini.<\/p>\n<p>If anyone can tell me in what respect version 4.0 is twice as fast, I&#8217;d be grateful.<\/p>\n<p><strong>Update<\/strong>: prompted by the comment from David Heffernan below, I also tried the <a href=\"http:\/\/www.heatonresearch.com\/node\/1201\" target=\"_blank\">Encog Silverlight Benchmark<\/a>. I used an older core duo laptop, since I am running out of machines to upgrade. I ran the test\u00a0twice before upgrading, and twice after. Lower is better:<\/p>\n<p>Silverlight\u00a03.0: 22.0<\/p>\n<p>Silverlight 4.0: 12.7<\/p>\n<p>That\u2019s about 42% better, where \u201ctwice as fast\u201d would be 50% better, much closer to Guthrie\u2019s claim. I guess it depends what you measure.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft\u2019s Scott Guthrie spoke of \u201ctwice as fast performance\u201d in the newly-released Silverlight 4, thanks to a new just-in-time compiler. Performance is a hard thing to nail down. Maybe he meant that compilation is twice as fast? I\u2019m not sure; but I tried a couple of quick tests. First, I looked at my Primes test. &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/2473-silverlight-4-vs-silverlight-3-a-little-bit-faster-2.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Silverlight 4 vs Silverlight 3: a little bit faster?<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,44,55,77,80,94,96],"tags":[565,586,716,825,996],"class_list":["post-2473","post","type-post","status-publish","format-standard","hentry","category-net","category-internet","category-microsoft","category-silverlight","category-software-development","category-visual-studio","category-web-authoring","tag-mac","tag-microsoft","tag-performance","tag-silverlight","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/2473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=2473"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/2473\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=2473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=2473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=2473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}