Why is my Java program running 4 times faster via Eclipse than via shell?-Collection of common programming errors
When I execute the simple code sample below via Eclipse (version 3.5.2, on Ubuntu 10.04, java version “1.6.0_20” 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.
for (int i = 0; i