title: Groovy for loop execution time
body: <p>O Groovy Gurus,</p>
  
  <p>This code snippet runs in around 1 second</p>
  
  <pre><code>    for (int i in (1..10000000)) {
           j = i;
      }
  </code></pre>
  
  <p>while this one takes almost 9 second</p>
  
  <pre><code>    for (int i = 1; i &lt; 10000000; i++) {
           j = i;
      }
  </code></pre>
  
  <p>Why is it so? </p>