今天開始要看nginx 源碼了,首先先看一個(gè)web服務(wù)器壓力測試工具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服務(wù)器的性能。結(jié)果如下
測試參數(shù) 10000個(gè)用戶并發(fā)請(qǐng)求30秒