1
0
mirror of https://github.com/wg/wrk synced 2025-01-08 06:52:55 +08:00
wrk/scripts/stop.lua
2015-02-21 10:30:14 +09:00

11 lines
183 B
Lua

-- example script that demonstrates use of thread:stop()
local counter = 1
function response()
if counter == 100 then
wrk.thread:stop()
end
counter = counter + 1
end