title: JavaScript Code Works Faster when JS Profiling is on? What?
body: <p>I'm facing a very strange behaviour with my application - if I start the profiler (must be JS profiler), the code works almost twice as fast. </p>
  
  <p>I've reproduced it with a very simple code which can be found on this fiddle: <a href="https://jsfiddle.net/zagrwk44/" rel="noreferrer">https://jsfiddle.net/zagrwk44/</a></p>
  
  <p>The thing is that this reproduces only on machines with old graphic cards. I've managed to reproduce it on a machine with <strong>AMD Radeon HD 6450</strong> graphic card. On a newer machine this does not reproduce anymore.</p>
  
  <p>How come the profiler makes the code run faster?? almost <strong>twice as fast</strong>!</p>
  
  <p>The code that takes the time here is just changing the position of a div on the screen:</p>
  
  <pre><code>for (var i = 0; i &lt; 1000000; i++) {
      box.style.top = getRandomInt(0, 100) + '%';
      box.style.left = getRandomInt(0, 100) + '%';                
  };
  </code></pre>
  
  <p>I'm starting and stopping the profiler via javascript with <code>console.profile</code> and <code>console.profileEnd</code>. <strong>In order to reproduce it, DevTools must be opened when running.</strong></p>
  
  <p>Thanks!</p>