File: stop.lua

package info (click to toggle)
wrk 4.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 492 kB
  • sloc: ansic: 4,737; makefile: 101
file content (10 lines) | stat: -rw-r--r-- 183 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
-- 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