title: Why https is faster than http in my apache server?
body: <p>Server information:</p>
  
  <pre><code>$ httpd -v 
  Server version: Apache/2.2.24 (Unix)
  Server built:   May  8 2013 15:17:37
  </code></pre>
  
  <p>I create a self-signed SSL Certificate with openssl.</p>
  
  <p>Test Code(Java with selenium webdriver):</p>
  
  <pre><code>      long startTime, useTime = 0, t;
        int count = 10;
        for (int i = 0; i &lt; count; i++) {
           ChromeDriver driver = new ChromeDriver(capabilities);
           startTime = System.nanoTime();
           driver.get("https://*.*.*.*/pic.html");
           //When testing Http,it will be:driver.get("http://*.*.*.*/pic.html");
           //pic.html is a simple page with many images.
           t = System.nanoTime() - startTime;
           useTime += t;
           driver.quit();
        }
        System.out.println("Average Time: " + useTime/1000000.0/count +" ms");
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>HTTPs:Average Time: 1718.13659 ms
  HTTP:Average Time: 2484.122677 ms
  </code></pre>
  
  <p>Thanks in advance.</p>