I need to benchmark a REST API that takes parameters as input. I wondering if there is a way to do it using wrk
. Right now I don't see such an option:
user@Ubuntu-K56CA:~/wrk$ ./wrk
Usage: wrk <options> <url>
Options:
-c, --connections <N> Connections to keep open
-d, --duration <T> Duration of test
-t, --threads <N> Number of threads to use
-s, --script <S> Load Lua script file
-H, --header <H> Add header to request
--latency Print latency statistics
--timeout <T> Socket/request timeout
-v, --version Print version details
When I look at this file: https://github.com/wg/wrk/blob/master/src/wrk.lua
I don't see params
used anywhere. Also grepping for params
in wrk
repo did not yield anything useful.
Am I missing something?