wrk performance test
Basic Usage
wrk -t12 -c400 -d30s http://localhost:8080/
Pipeline
First, create the pipeline.lua script
init = function(args$$ request_uri = args[1] depth = tonumber(args[2]$$ or 1 local r = {} for i=1,depth do r[i] = wrk.format(nil, request_uri$$ end req = table.concat(r$$ end request = function($$ return req end
and run
wrk -t4 -c128 -d30s http://localhost:8080 -s pipeline.lua –latency — / 16