public snapshot · system/tools/nib/bench/xlang/ · system@main · commit a92f56ab098e · shared 2026-11-22T22:43:57Z· frozen: this page does not change when the repository does
all files
  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