about summary refs log tree commit diff
path: root/wqflask/wqflask/static/packages/node/tools/wrk/scripts/pipeline.lua
blob: 4bc028593469a909468611231b6887a93b7d739e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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