id = "wrk" name = "wrk" description = "HTTP benchmarking tool." executables = ["wrk"] [commands] format = 1 label = "HTTP benchmark" description = "Load-test a URL." quality = "ai-draft" base = "fig:wrk" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/wrk.ts" license = "MIT" [[commands.field]] id = "url" label = "URL" type = "url" position = 0 sources = ["fig"] [[commands.field]] id = "connections" label = "Connections" type = "integer" option = ["-c"] sources = ["fig"] [[commands.field]] id = "threads" label = "Threads" type = "integer" option = ["-t"] sources = ["fig"] [[commands.field]] id = "duration" label = "Duration (e.g. 30s)" type = "string" option = ["-d"] sources = ["fig"] [[commands.field]] id = "timeout" label = "Timeout (e.g. 2s)" type = "string" option = ["--timeout"] sources = ["fig"] [[commands.field]] id = "latency" label = "Print latency statistics" type = "boolean" option = ["--latency"] sources = ["fig"] [[commands.field]] id = "header" label = "Header" type = "string" option = ["-H"] multiple = true sources = ["fig"] [[commands.field]] id = "script" label = "Lua script" type = "path" option = ["-s"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.task]] id = "bench" label = "Benchmark" fields = ["url", "connections", "threads", "duration", "latency", "timeout", "header", "script"] required = ["url"] [[commands.group]] id = "basic" label = "Basic" fields = ["url", "connections", "threads", "duration", "latency", "timeout", "header", "script"]