测量Nginxredirect速度

我build立了一个redirectpipe理服务 – Redirecto ,我只用nginxconfiguration文件pipe理客户端的redirect。

我想基于速度和负载,它可以处理我的服务基准,因为它只是nginx甚至没有静态文件😇

我尝试使用$request_time在自定义日志格式&试过使用,但它始终logging为0.000

我想我需要一个负载testing工具,不遵循redirect。 有什么build议么?

我能够使用Apache Benchmark(ab)进行基准testing,因为它默认不遵循redirect。

ab -n 10000 -c 10 https://example.com/

Percentage of the requests served within a certain time (ms) 50% 36 66% 39 75% 40 80% 42 90% 46 95% 51 98% 57 99% 62 100% 113 (longest request)

ab -n 10000 -c 100 https://example.com/

Percentage of the requests served within a certain time (ms) 50% 374 66% 381 75% 388 80% 394 90% 417 95% 430 98% 456 99% 509 100% 577 (longest request)

这是259M +在一个月的stream量点击。 对结果很满意。