14 lines
374 B
Lua
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
|