{"id":5489,"date":"2014-03-30T22:47:48","date_gmt":"2014-03-30T22:47:48","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/why-is-my-java-program-running-4-times-faster-via-eclipse-than-via-shell-collection-of-common-programming-errors\/"},"modified":"2014-03-30T22:47:48","modified_gmt":"2014-03-30T22:47:48","slug":"why-is-my-java-program-running-4-times-faster-via-eclipse-than-via-shell-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/why-is-my-java-program-running-4-times-faster-via-eclipse-than-via-shell-collection-of-common-programming-errors\/","title":{"rendered":"Why is my Java program running 4 times faster via Eclipse than via shell?-Collection of common programming errors"},"content":{"rendered":"<p>When I execute the simple code sample below via Eclipse (version 3.5.2, on Ubuntu 10.04, java version &#8220;1.6.0_20&#8221; OpenJDK Runtime Environment (IcedTea6 1.9.9) (6b20-1.9.9-0ubuntu1~10.04.2) OpenJDK Server VM (build 19.0-b09, mixed mode)), it takes about 10 seconds. When I execute it from my shell (using the same priority and java version), it takes about 40 seconds.<\/p>\n<pre><code>for (int i = 0; i<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When I execute the simple code sample below via Eclipse (version 3.5.2, on Ubuntu 10.04, java version &#8220;1.6.0_20&#8221; OpenJDK Runtime Environment (IcedTea6 1.9.9) (6b20-1.9.9-0ubuntu1~10.04.2) OpenJDK Server VM (build 19.0-b09, mixed mode)), it takes about 10 seconds. When I execute it from my shell (using the same priority and java version), it takes about 40 seconds. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5489","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5489"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5489\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}