Created
October 18, 2011 11:27
-
-
Save Ephigenia/1295205 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Fr 4 Jun 2010 12:15:54 CEST | |
| Batch Apache-Benchmarking on | |
| http://www.horrorblog.org | |
| uri: / | |
| Finished 349 requests | |
| Requests per second: 5.57 [#/sec] (mean) | |
| Time per request: 1794.754 [ms] (mean) | |
| Time per request: 179.475 [ms] (mean, across all concurrent requests) | |
| uri: /blog/reca-drei-clips-und-red-band-trailer/ | |
| Finished 588 requests | |
| Requests per second: 9.79 [#/sec] (mean) | |
| Time per request: 1021.170 [ms] (mean) | |
| Time per request: 102.117 [ms] (mean, across all concurrent requests) | |
| uri: /blog/the-crazies-remake-horrorblog-kritik/ | |
| Finished 407 requests | |
| Requests per second: 6.78 [#/sec] (mean) | |
| Time per request: 1474.255 [ms] (mean) | |
| Time per request: 147.425 [ms] (mean, across all concurrent requests) | |
| uri: /blog/the-crazies-interview-clips/ | |
| Finished 397 requests | |
| Requests per second: 6.60 [#/sec] (mean) | |
| Time per request: 1514.682 [ms] (mean) | |
| Time per request: 151.468 [ms] (mean, across all concurrent requests) | |
| uri: /blog/the-devils-playground-erste-bilder/ | |
| Finished 331 requests | |
| Requests per second: 5.50 [#/sec] (mean) | |
| Time per request: 1816.657 [ms] (mean) | |
| Time per request: 181.666 [ms] (mean, across all concurrent requests) | |
| uri: /blog/a-nightmare-on-elm-street-remake-horrorblog-kritik/ | |
| Finished 506 requests | |
| Requests per second: 8.43 [#/sec] (mean) | |
| Time per request: 1185.792 [ms] (mean) | |
| Time per request: 118.579 [ms] (mean, across all concurrent requests) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ############################################################################## | |
| # Run ab on a list of URIs | |
| # | |
| # Usage: | |
| # ab_batch.sh | |
| # | |
| # Author: Marcel Eichner // Ephigenia <love@ephigenia.de> | |
| # Date: 2010-06-03 | |
| ############################################################################## | |
| URL="http://www.horrorblog.org" | |
| SLEEP=30 | |
| URIS=( | |
| "/" | |
| "/blog/reca-drei-clips-und-red-band-trailer/" | |
| "/blog/the-crazies-remake-horrorblog-kritik/" | |
| "/blog/the-crazies-interview-clips/" | |
| "/blog/the-devils-playground-erste-bilder/" | |
| "/blog/a-nightmare-on-elm-street-remake-horrorblog-kritik/" | |
| ) | |
| date | |
| echo -e "Batch Apache-Benchmarking on n${URL}" | |
| for URI in ${URIS[@]}; | |
| do | |
| echo "uri: ${URI}" | |
| ab -c 10 -t 60 "${URL}${URI}" | grep -P "(request|second):" | |
| sleep ${SLEEP} | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment