| | 72 | === Dev Server === |
| | 73 | |
| | 74 | Running Varnish on port 80 and apache on 443. |
| | 75 | |
| | 76 | ==== apache bench ==== |
| | 77 | |
| | 78 | This is with the first hit being passed to apache: |
| | 79 | |
| | 80 | {{{ |
| | 81 | ab -v 4 -n 200 -c 10 -H "Accept-Encoding: gzip" http://dev.transitionnetwork.org/ |
| | 82 | |
| | 83 | LOG: Response code = 200 |
| | 84 | LOG: header received: |
| | 85 | HTTP/1.1 200 OK |
| | 86 | Server: Apache |
| | 87 | Cache-Control: public, max-age=3600 |
| | 88 | Last-Modified: Tue, 05 Jul 2011 12:51:05 +0000 |
| | 89 | Expires: Sun, 11 Mar 1984 12:00:00 GMT |
| | 90 | Vary: Cookie,Accept-Encoding |
| | 91 | ETag: "1309870265" |
| | 92 | Content-Encoding: gzip |
| | 93 | Content-Type: text/html; charset=utf-8 |
| | 94 | Content-Length: 7353 |
| | 95 | Date: Tue, 05 Jul 2011 12:51:07 GMT |
| | 96 | X-Varnish: 1553439536 1553439337 |
| | 97 | Age: 0 |
| | 98 | Via: 1.1 varnish |
| | 99 | Connection: close |
| | 100 | X-Varnish-Cache: HIT |
| | 101 | |
| | 102 | Time taken for tests: 1.616 seconds |
| | 103 | Complete requests: 200 |
| | 104 | |
| | 105 | Percentage of the requests served within a certain time (ms) |
| | 106 | 50% 3 |
| | 107 | 66% 3 |
| | 108 | 75% 3 |
| | 109 | 80% 3 |
| | 110 | 90% 4 |
| | 111 | 95% 4 |
| | 112 | 98% 5 |
| | 113 | 99% 1412 |
| | 114 | 100% 1412 (longest request) |
| | 115 | }}} |
| | 116 | |
| | 117 | This is for subsequent requests which don't hit apache: |
| | 118 | |
| | 119 | {{{ |
| | 120 | Time taken for tests: 0.149 seconds |
| | 121 | Complete requests: 200 |
| | 122 | |
| | 123 | Percentage of the requests served within a certain time (ms) |
| | 124 | 50% 7 |
| | 125 | 66% 7 |
| | 126 | 75% 8 |
| | 127 | 80% 8 |
| | 128 | 90% 9 |
| | 129 | 95% 9 |
| | 130 | 98% 10 |
| | 131 | 99% 11 |
| | 132 | 100% 12 (longest request) |
| | 133 | }}} |
| | 134 | |
| | 135 | |