Those examples implement functions that will be called by wrk. It wouldn't make sense to define those functions for every request. Add a print to your script to make sure. Here is an example that counts requests. You probably can put your code into that function. function request() requests = requests + 1 return wrk.request() end More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.