1-- wrk script for the accounts servers: each thread walks the 1024 accounts 2-- in turn, starting at its own offset. 3local counter = 0 4local offset = 0 5function setup(thread) 6 thread:set("offset", offset) 7 offset = offset + 256 8end 9function request() 10 counter = counter + 1 11 return wrk.format("GET", "/a/" .. ((counter + offset) % 1024)) 12end