mirror of
https://github.com/wg/wrk
synced 2026-05-20 04:29:50 +08:00
support pipelining via script request()
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
-- example script demonstrating HTTP pipelining
|
||||
|
||||
init = function(args)
|
||||
wrk.init(args)
|
||||
|
||||
local r = {}
|
||||
r[1] = wrk.format(nil, "/?foo")
|
||||
r[2] = wrk.format(nil, "/?bar")
|
||||
r[3] = wrk.format(nil, "/?baz")
|
||||
|
||||
req = table.concat(r)
|
||||
end
|
||||
|
||||
request = function()
|
||||
return req
|
||||
end
|
||||
Reference in New Issue
Block a user