mirror of
https://github.com/wg/wrk
synced 2025-01-08 23:32:54 +08:00
15 lines
262 B
Lua
15 lines
262 B
Lua
|
-- example script demonstrating HTTP pipelining
|
||
|
|
||
|
init = function(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
|