1
0
mirror of https://github.com/wg/wrk synced 2025-01-08 23:32:54 +08:00
wrk/scripts/stop.lua

11 lines
183 B
Lua
Raw Normal View History

2015-02-07 16:03:17 +08: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