Introduction
ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving.
References
Environment
- Linux
Process
安装命令
yum -y install httpd-tools
执行命令
ab -H "token:photo_all_rights_reserved;Referer:https://www.baidu.com/index.php;Host:www.baidu.com" -c 100 -n 10000 https://www.scjxxz.com/
执行之后,参照 Apache Bench 文档,分析结果。
Conclusion
做个笔记。方便快捷,简单易用。
转载本文,请注明出处、作者。