As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Lua source code syntax highlighting (style: standard) with prefixed line numbers and code folding option.
Alternatively you can here view or download the uninterpreted source code file.
1 -- example script that demonstrates use of thread:stop() 2 3 local counter =1 4 5 functionresponse() 6 if counter ==100then 7 wrk.thread:stop() 8 end 9 counter = counter +1 10 end