mirror of
https://github.com/wg/wrk
synced 2025-01-08 23:32:54 +08:00
11 lines
183 B
Lua
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
|