mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 13:02:11 +03:00
21 lines
482 B
Lua
21 lines
482 B
Lua
|
-- This is the default lua script that is used when
|
||
|
-- a script is not specified by the user.
|
||
|
|
||
|
-- This expects that the url specified confirms to
|
||
|
-- the graphql url POST spec.
|
||
|
|
||
|
local gqbench = require "bench-lib-wrk"
|
||
|
|
||
|
local req_body = ""
|
||
|
function init(args)
|
||
|
req_body, auth_header_key, auth_header_value = gqbench.init(args)
|
||
|
end
|
||
|
|
||
|
function request()
|
||
|
return gqbench.request(wrk, req_body, auth_header_key, auth_header_value)
|
||
|
end
|
||
|
|
||
|
function done(s, l, r)
|
||
|
gqbench.done(s, l, r)
|
||
|
end
|