Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # wget -O mage-perftest sys.sonassi.com/mage-perftest
- # chmod +x mage-perftest
- # ./mage-perftest -h
- Usage: ./mage-perftest [OPTIONS] -u URL
- This script is used to test the performance of a web page
- OPTIONS:
- -u [URL] URL to test
- -[c/r] [0-9]+ Concurrency level (# users) or test repetitions
- -b PHP benchmark only (no assets downloaded)
- -s [URL] URL for XML sitemap (use with -r to limit URLs crawled)
- -R Randomise sitemap requests
- # ./mage-perftest -u me-s1.sonassihosting.com
- Spawning 1 Mage crawlers ...
- Testing URL me-s1.sonassihosting.com
- Waiting for Mage crawlers to finish ...
- Test Summary
- ============
- Total files: 106
- Total downloaded: 1.2M
- Avg. page weight: 1.20M
- Total time: 0.037s
- Min response: 0.037s
- Max response: 0.037s
- Avg. page response: 0.03s
- Concurrency/Repeats: 1
- Transactions/s 2864.86
- Test URL: me-s1.sonassihosting.com
- # ./mage-perftest -u me-s1.sonassihosting.com -b
- Spawning 1 Mage crawlers ...
- Testing URL me-s1.sonassihosting.com
- Waiting for Mage crawlers to finish ...
- Test Summary
- ============
- Total files: 1
- Total downloaded: 4K
- Avg. page weight: 4.00K
- Total time: 0.035s
- Min response: 0.035s
- Max response: 0.035s
- Avg. page response: 0.03s
- Concurrency/Repeats: 1
- Transactions/s 28.57
- Test URL: me-s1.sonassihosting.com
- Success rate: 1/1 (100.00%)
- # ./mage-perftest -u me-s1.sonassihosting.com -s me-s1.sonassihosting.com/sitemap.xml -r 1
- Downloading sitemap
- Spawning 1 Mage crawlers ...
- Testing URL http://me-s1.sonassihosting.com/electronics/cell-phones.html
- Waiting for Mage crawlers to finish ...
- Test Summary
- ============
- Total files: 105
- Total downloaded: 1.2M
- Avg. page weight: 1.20M
- Total time: 0.036s
- Min response: 0.036s
- Max response: 0.036s
- Avg. page response: 0.03s
- Concurrency/Repeats: 1
- Transactions/s 2916.66
- Test URL: From sitemap (me-s1.sonassihosting.com/sitemap.xml)
- # ./mage-perftest -u me-s1.sonassihosting.com -c 25 -b
- Spawning 25 Mage crawlers ...
- Waiting for Mage crawlers to finish ...
- Test Summary
- ============
- Total files: 25
- Total downloaded: 100K
- Avg. page weight: 4.00K
- Total time: 3.17s
- Min response: 0.093s
- Max response: 0.159s
- Avg. page response: 0.12s
- Concurrency/Repeats: 25
- Transactions/s 7.88
- Test URL: me-s1.sonassihosting.com
- Success rate: 25/25 (100.00%)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement