在Ubuntu 12.04 LTS下使用gwan_linux64-bit.tar.bz2拆包并运行gwan
然后指向wrk(使用null文件null.html)
wrk --timeout 10 -t 2 -c 100 -d20s http://127.0.0.1:8080/null.html
Running 20s test @ http://127.0.0.1:8080/null.html
2 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 11.65s 5.10s 13.89s 83.91%
Req/Sec 3.33k 3.65k 12.33k 75.19%
125067 requests in 20.01s, 32.08MB read
Socket errors: connect 0, read 37, write 0, timeout 49
Requests/sec: 6251.46
Transfer/sec: 1.60MB
Run Code Online (Sandbox Code Playgroud)
..性能非常差,实际上似乎存在某种巨大的延迟问题.在测试期间,gwan有200%的忙碌,而wrk有67%的忙碌.
指向nginx,wrk忙碌200%,nginx忙碌45%:
wrk --timeout 10 -t 2 -c 100 -d20s http://127.0.0.1/null.html
Thread Stats Avg Stdev Max +/- Stdev
Latency 371.81us …Run Code Online (Sandbox Code Playgroud)