{"id":2611,"date":"2010-05-13T10:58:34","date_gmt":"2010-05-13T09:58:34","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/2611-java-versus-cc-performance-which-is-really-faster.html"},"modified":"2010-05-13T10:58:34","modified_gmt":"2010-05-13T09:58:34","slug":"java-versus-cc-performance-which-is-really-faster","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/2611-java-versus-cc-performance-which-is-really-faster.html","title":{"rendered":"Java versus C\/C++ performance \u2013 which is really faster?"},"content":{"rendered":"<p>Cliff Click of Azul Systems has an <a href=\"http:\/\/www.azulsystems.com\/blog\/cliff-click\/2009-09-06-java-vs-c-performanceagain\" target=\"_blank\">excellent post on Java vs C\/C++ performance<\/a>:<\/p>\n<blockquote><p>Is Java faster than C\/C++?\u00a0 The short answer is: <em>it depends<\/em>.<\/p><\/blockquote>\n<p>He then presents three categories of cases: the first C\/C++ beats Java, the second where Java beats C\/C++, and the third and longest, where C\/C++ proponents claim Java is slower but in reality it is not.<\/p>\n<p>My quick summary: there are few cases where Java (or C#) is so much slower that it matters, save for one big issue which Click mentions early on \u2013 start-up time:<\/p>\n<blockquote><p>Flash games beat Java games mostly because it took 30+sec to load the JVM from disk&#8230; and so now the web-game developer community has settled on Flash as the standard (and it still takes 10+sec to load the JVM).<\/p><\/blockquote>\n<p>Start-up time makes a big difference to usability, for reasons which I cannot entirely explain. Just for fun, I\u2019ve been running Microsoft Office 95 in a virtual instance of Windows XP recently, and the fact that Word 95 loads in a blink makes it feel much faster than Word 2010, which takes 5-10 seconds on first load, even though the productivity difference must be negligible.<\/p>\n<p>If I had to theorise about this, I\u2019d say it is to do with the way humans learn from experience. We don\u2019t like waiting, and if an application take a while to start then part of our brain tells us to avoid it in future. We override that instinct when it is an app we need to run, but it contributes to a negative impression.<\/p>\n<p>The opposite is also true. If an application starts instantly \u2013 I mean to the point where we can use it, not just a splash screen \u2013 it contributes to a positive impression and we are more inclined to use it in future.<\/p>\n<p>Incidentally, Click thinks that Java is generally faster than C#, though he adds that he is \u201cnot able to give C# a fair treatment\u201d because he does not track it closely.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cliff Click of Azul Systems has an excellent post on Java vs C\/C++ performance: Is Java faster than C\/C++?\u00a0 The short answer is: it depends. He then presents three categories of cases: the first C\/C++ beats Java, the second where Java beats C\/C++, and the third and longest, where C\/C++ proponents claim Java is slower &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/2611-java-versus-cc-performance-which-is-really-faster.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Java versus C\/C++ performance \u2013 which is really 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,4,34,49,55],"tags":[104,236,512,586],"class_list":["post-2611","post","type-post","status-publish","format-standard","hentry","category-net","category-adobe","category-flash","category-java","category-microsoft","tag-net","tag-c","tag-java","tag-microsoft"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/2611","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=2611"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/2611\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=2611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=2611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=2611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}