{"id":9,"date":"2004-09-01T22:58:21","date_gmt":"2004-09-01T20:58:21","guid":{"rendered":"http:\/\/ken.friislarsen.net\/blog\/?p=9"},"modified":"2004-09-01T22:58:21","modified_gmt":"2004-09-01T20:58:21","slug":"now-with-java","status":"publish","type":"post","link":"http:\/\/ken.friislarsen.net\/blog\/2004\/09\/01\/now-with-java\/","title":{"rendered":"Now with Java"},"content":{"rendered":"<p>Following up on the benchmark from yesterday, I&#8217;ve produced a Java version of the queens benchmark (<a href=\"http:\/\/ken.friislarsen.net\/blog\/images\/queens.java\">queens.java<\/a>).  Below is the updated graph. I have a suspision that the reason Mono and Java is performing so bad is not only due to exceptions, but rather it has something to do with garbage collection.<\/p>\n<p align=\"center\"><a href=\"http:\/\/ken.friislarsen.net\/blog\/images\/queens-graph-v2.png\"><img decoding=\"async\" src=\"http:\/\/ken.friislarsen.net\/blog\/images\/queens-graph-v2-small.png\" alt=\"Graph showing running times for the different executables\"\/><\/a><\/p>\n<p>I also tried to improve the C++ version based on some hints I got from Asger and S\u00f8ren (colleagues at Laerdal Sophus).  The C++ improvements worked really well when we tested them at work with Visual Studio&nbsp;6.0.  But the improvements had absolutely no effect when compiling with gcc 3.4.1. Either gcc is very smart or very stupid. Something suggest the later as a quick test reveals that gcc version 3.4.1 is producing worse code than version 3.3.4, which in turn is producing worse code than version 3.2.3 .  I guess that I&#8217;ll have to install Windows and the free Microsoft compilers, so that I can compare them against gcc and Mono.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following up on the benchmark from yesterday, I&#8217;ve produced a Java version of the queens benchmark (queens.java). Below is the updated graph. I have a suspision that the reason Mono and Java is performing so bad is not only due to exceptions, but rather it has something to do with garbage collection. I also tried <a class=\"read-more\" href=\"http:\/\/ken.friislarsen.net\/blog\/2004\/09\/01\/now-with-java\/\">[&hellip;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,4,11],"tags":[],"class_list":["post-9","post","type-post","status-publish","format-standard","hentry","category-c","category-coding","category-java"],"_links":{"self":[{"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/posts\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":0,"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"wp:attachment":[{"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}