| 6 | == 2011-07-13 == |
| 7 | |
| 8 | The varnish settings for the dev server and the live server are exactly the same. However the dev server is serving pages via varnish: |
| 9 | |
| 10 | {{{ |
| 11 | lynx -head -dump http://dev.transitionnetwork.org/ |
| 12 | X-Varnish-Cache: HIT |
| 13 | }}} |
| 14 | |
| 15 | And the live server is not: |
| 16 | |
| 17 | }}} |
| 18 | lynx -head -dump http://www.transitionnetwork.org/ |
| 19 | X-Drupal-Cache: HIT |
| 20 | X-Varnish-Cache: MISS |
| 21 | }}} |
| 22 | |
| 23 | Note the '''X-Varnish-Cache: HIT''' header from the dev server and the '''X-Drupal-Cache: HIT''' from the live server. |
| 24 | |
| 25 | === live server === |
| 26 | |
| 27 | ==== apache bench ==== |
| 28 | |
| 29 | {{{ |
| 30 | ab -v 4 -n 200 -c 10 -H "Accept-Encoding: gzip" http://www.transitionnetwork.org/ |
| 31 | |
| 32 | Time taken for tests: 3.417 seconds |
| 33 | Requests per second: 58.53 [#/sec] (mean) |
| 34 | Time per request: 170.863 [ms] (mean) |
| 35 | Percentage of the requests served within a certain time (ms) |
| 36 | 50% 135 |
| 37 | 66% 179 |
| 38 | 75% 214 |
| 39 | 80% 247 |
| 40 | 90% 325 |
| 41 | 95% 407 |
| 42 | 98% 638 |
| 43 | 99% 705 |
| 44 | 100% 795 (longest request) |
| 45 | }}} |
| 46 | |
| 47 | ==== curl ==== |
| 48 | |
| 49 | {{{ |
| 50 | curl -o /dev/null https://www.transitionnetwork.org/ |
| 51 | % Total % Received % Xferd Average Speed Time Time Time Current |
| 52 | Dload Upload Total Spent Left Speed |
| 53 | 100 30668 0 30668 0 0 449k 0 --:--:-- --:--:-- --:--:-- 14.6M |
| 54 | }}} |
| 55 | |