有一个需求,就是想测试一下 nginx 处理单个小文件能到多大的 QPS
nginx 配置:
读取文件:nginx 默认的 index.html(616字节)
我用了 ab/webbench/http_load尝试在同一个局域网/本机, 多进程压测, 但是都上不去.
ab -n 1000000 -c 50 http://10.210.128.66/
测试结果 Requests per second: 12283.14 [#/sec] (mean)
httpserver的 CPU 一直维持在5%左右, iostat 显示空闲(我觉着可能是因为 index.html 已经被 cache 在内存中了).
我哪儿的姿势不对?