title: Why python program runs slower in mac os terminal than in virtual machine(ubuntu)?
body: <p>I wrote a simple program like this:</p>
  
  <pre><code>for i in range(0,10000000):
      x = i + 1
  </code></pre>
  
  <p>After I ran this program several times in Mac os's terminal and in Ubuntu's Terminal(which is a virtual machine in the Mac os), it turned out that mac os took 1.5 min and ubuntu only took 0.8 min.</p>
  
  <p>I have no idea at all why this happened.
  Can anyone give me some advice?</p>