mirror of
https://github.com/wg/wrk
synced 2025-01-09 16:23:04 +08:00
17 lines
281 B
Lua
17 lines
281 B
Lua
-- 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
|