title: Avoid jvm warmup
body: <p>If I am designing a test on sorting algorithm can I do this way to avoid JVM warmup ? Thank you!</p>
  
  <pre><code>double count = 0;
  double start, end;
  for(int r = 0; r &lt; warmup; r++) {
      // do test
  }
  for(int t = 0; t &lt; runs; t++){
      start = System.nanoTime();
      // do test
      end = System.nanoTime();
      count += start - end;
  }
  double avg = count/avg
  </code></pre>