baseline
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
-- 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
|
||||
Reference in New Issue
Block a user