Skip to content

Instantly share code, notes, and snippets.

@l1x
Last active March 5, 2017 22:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save l1x/2b12971e94d6160ac70f551ab8ee40ff to your computer and use it in GitHub Desktop.
HTTP perf
init = function(args)
local r = {}
r[1] = wrk.format(nil, "/hello?1")
r[2] = wrk.format(nil, "/hello?2")
r[3] = wrk.format(nil, "/hello?3")
r[4] = wrk.format(nil, "/hello?4")
r[5] = wrk.format(nil, "/hello?5")
r[6] = wrk.format(nil, "/hello?6")
r[7] = wrk.format(nil, "/hello?7")
r[8] = wrk.format(nil, "/hello?8")
r[9] = wrk.format(nil, "/hello?9")
r[10] = wrk.format(nil, "/hello?10")
req = table.concat(r)
end
request = function()
return req
end
[centos@ip-172-31-28-42 wrk]$ ./wrk -t48 -c1024 -d30s http://172.31.26.16:8080 --latency
Running 30s test @ http://172.31.26.16:8080
48 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 3.34ms 4.92ms 218.90ms 97.71%
Req/Sec 7.40k 472.64 12.71k 81.52%
Latency Distribution
50% 2.73ms
75% 3.00ms
90% 3.36ms
99% 22.28ms
10628987 requests in 30.10s, 6.37GB read
Non-2xx or 3xx responses: 5
Requests/sec: 353133.86
Transfer/sec: 216.88MB
[centos@ip-172-31-28-42 wrk]$ ./wrk -t48 -c1024 -d120s http://172.31.26.16:8080/hello --latency
Running 2m test @ http://172.31.26.16:8080/hello
48 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.80ms 0.96ms 206.86ms 98.11%
Req/Sec 7.60k 196.64 17.80k 91.56%
Latency Distribution
50% 2.74ms
75% 2.92ms
90% 3.06ms
99% 4.29ms
43569305 requests in 2.00m, 7.02GB read
Requests/sec: 362775.92
Transfer/sec: 59.85MB
[centos@ip-172-31-28-42 wrk]$ ./wrk -t48 -c1024 -d120s http://172.31.26.16:8080/hello --latency -s pip.lua
Running 2m test @ http://172.31.26.16:8080/hello
48 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.37ms 2.69ms 211.43ms 98.64%
Req/Sec 21.48k 2.17k 104.39k 97.94%
Latency Distribution
50% 2.15ms
75% 2.87ms
90% 3.12ms
99% 6.07ms
122691114 requests in 2.00m, 19.77GB read
Requests/sec: 1021574.91
Transfer/sec: 168.55MB
[centos@ip-172-31-28-42 wrk]$ ./wrk -t48 -c1024 -d120s http://172.31.26.16:8080/hello --latency -s pip.lua
Running 2m test @ http://172.31.26.16:8080/hello
48 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.23ms 2.73ms 204.45ms 96.33%
Req/Sec 56.80k 6.45k 404.36k 98.81%
Latency Distribution
50% 1.95ms
75% 2.74ms
90% 3.27ms
99% 10.86ms
324435240 requests in 2.00m, 52.27GB read
Requests/sec: 2701379.86
Transfer/sec: 445.69MB
[centos@ip-172-31-28-42 wrk]$ ./wrk -t48 -c1024 -d120s http://172.31.26.16:8080/hello --latency -s pip.lua
Running 2m test @ http://172.31.26.16:8080/hello
48 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.25ms 3.08ms 207.09ms 96.15%
Req/Sec 61.79k 9.67k 174.65k 94.87%
Latency Distribution
50% 1.92ms
75% 2.70ms
90% 3.24ms
99% 12.23ms
353857863 requests in 2.00m, 57.01GB read
Socket errors: connect 0, read 0, write 0, timeout 116
Requests/sec: 2946364.13
Transfer/sec: 486.11MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment