{"id":864,"date":"2008-09-03T09:53:11","date_gmt":"2008-09-03T08:53:11","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/864-counting-primes-in-google-chrome.html"},"modified":"2008-09-03T09:53:11","modified_gmt":"2008-09-03T08:53:11","slug":"counting-primes-in-google-chrome","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/864-counting-primes-in-google-chrome.html","title":{"rendered":"Counting primes in Google Chrome"},"content":{"rendered":"<p>A while back I put together a quick <a href=\"http:\/\/www.itwriting.com\/blog\/counting-primes-in-flash-and-silverlight\">prime counting test for Flash and Silverlight<\/a>.<\/p>\n<p>As someone noted, this test runs remarkably fast in Chrome, thanks to the <a href=\"http:\/\/code.google.com\/p\/v8\/\">V8 JavaScript engine<\/a>.<\/p>\n<p>Here\u2019s the <a href=\"http:\/\/www.itwriting.com\/primetest\/countprimes.html\">JavaScript version of the test<\/a> \u2013 note that you cannot easily run this in IE or Firefox for larger values, because the script times out, though you can <a href=\"http:\/\/www.itwriting.com\/blog\/119-ie7-script-madness.html\">configure your browser<\/a> to prevent this.<\/p>\n<p>Here are my figures on Vista (lower is better):<\/p>\n<ol>\n<li>Microsoft Silverlight 2.0 beta 2: 0.464 secs<\/li>\n<li>JavaScript Google Chrome: 1.4 secs<\/li>\n<li>Adobe Flash: 1.667 secs<\/li>\n<li>JavaScript Mozilla Firefox 3: 6.046 secs<\/li>\n<li>JavaScript Microsoft IE7: 11.916 secs<\/li>\n<\/ol>\n<p>I can\u2019t easily test IE8 as I have it installed in a virtual machine.<\/p>\n<div class=\"wlWriterSmartContent\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:0ba785c8-d3eb-4490-ab3b-00519bc1fe1c\" style=\"padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px\">Technorati tags: <a href=\"http:\/\/technorati.com\/tags\/google+chrome\" rel=\"tag\">google chrome<\/a>, <a href=\"http:\/\/technorati.com\/tags\/performance\" rel=\"tag\">performance<\/a>, <a href=\"http:\/\/technorati.com\/tags\/flash\" rel=\"tag\">flash<\/a>, <a href=\"http:\/\/technorati.com\/tags\/silverlight\" rel=\"tag\">silverlight<\/a>, <a href=\"http:\/\/technorati.com\/tags\/microsoft\" rel=\"tag\">microsoft<\/a>, <a href=\"http:\/\/technorati.com\/tags\/adobe\" rel=\"tag\">adobe<\/a>, <a href=\"http:\/\/technorati.com\/tags\/mozilla\" rel=\"tag\">mozilla<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>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\u2019s the JavaScript version of the test \u2013 note that you cannot easily run this in IE or Firefox for larger values, because the &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/864-counting-primes-in-google-chrome.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Counting primes in Google Chrome<\/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":[4,36,55,96],"tags":[],"class_list":["post-864","post","type-post","status-publish","format-standard","hentry","category-adobe","category-google","category-microsoft","category-web-authoring"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/864","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=864"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/864\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}