Mercurial
comparison third_party/wrk/scripts/pipeline.lua @ 178:94705b5986b3
[ThirdParty] Added WRK and luajit for load testing.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Thu, 22 Jan 2026 20:10:30 -0800 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 177:24fe8ff94056 | 178:94705b5986b3 |
|---|---|
| 1 -- example script demonstrating HTTP pipelining | |
| 2 | |
| 3 init = function(args) | |
| 4 local r = {} | |
| 5 r[1] = wrk.format(nil, "/?foo") | |
| 6 r[2] = wrk.format(nil, "/?bar") | |
| 7 r[3] = wrk.format(nil, "/?baz") | |
| 8 | |
| 9 req = table.concat(r) | |
| 10 end | |
| 11 | |
| 12 request = function() | |
| 13 return req | |
| 14 end |