Files
urus-benches/loadgen/s2_user_get.lua
T
2026-05-26 23:22:32 +02:00

14 lines
374 B
Lua

-- S2: single-route GET with full middleware (logger + request_id + auth).
-- :id is spread across 10_000 values to defeat per-id caching.
local common = require("common")
wrk.method = "GET"
wrk.headers = common.headers
math.randomseed(os.time() + os.getpid())
request = function()
local id = math.random(1, 10000)
return wrk.format(nil, "/api/v1/users/" .. id)
end