1
0
mirror of https://github.com/wg/wrk synced 2025-03-10 15:57:16 +08:00
wrk/scripts/stop.lua

11 lines
183 B
Lua
Raw Permalink Normal View History

2015-02-07 17:03:17 +09:00
-- 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