今天开始要看nginx 源码了,首先先看一个web服务器压力测试工具Web Bench
。
Web Bench is very simple tool for benchmarking WWW
or proxy servers. Uses fork() for simulating multiple clients and
can use HTTP/0.9-HTTP/1.1 requests. This benchmark is not
very realistic, but it can test if your HTTPD can realy handle that
many clients at once (try to run some CGIs) without taking
your machine down. Displays pages/min and bytes/sec. Can be used
in more aggressive mode with -f switch.
Web Bench 下载主页 http://home..cz/~cz210552/webbench.html
用Web Bench 简单测试下nginx服务器的性能。结果如下
测试参数 10000个用户并发请求30秒