id = "autocannon" name = "autocannon" description = "Fast HTTP/1.1 benchmarking tool written in Node.js." homepage = "https://github.com/mcollina/autocannon" executables = ["autocannon"] [commands] format = 1 label = "Benchmark a URL" description = "Run a load test against one URL. Body files, forms, HAR replay, TLS certificates, workers and rate limits are left out." quality = "ai-draft" base = "fig:autocannon" 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/autocannon.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", "--connections"] sources = ["fig"] [[commands.field]] id = "duration" label = "Duration (seconds)" type = "integer" option = ["-d", "--duration"] sources = ["fig"] [[commands.field]] id = "pipelining" label = "Pipelined requests" type = "integer" option = ["-p", "--pipelining"] sources = ["fig"] [[commands.field]] id = "amount" label = "Total requests" type = "integer" option = ["-a", "--amount"] sources = ["fig"] [[commands.field]] id = "method" label = "HTTP method" type = "string" option = ["-m", "--method"] suggestions = [{ value = "GET", label = "GET" }, { value = "POST", label = "POST" }, { value = "PUT", label = "PUT" }, { value = "DELETE", label = "DELETE" }, { value = "PATCH", label = "PATCH" }, { value = "HEAD", label = "HEAD" }, { value = "OPTIONS", label = "OPTIONS" }] sources = ["fig"] [[commands.field]] id = "headers" label = "Request headers (K=V)" type = "string" option = ["-H", "--headers"] multiple = true sources = ["fig"] [[commands.field]] id = "body" label = "Request body" type = "string" option = ["-b", "--body"] sources = ["fig"] [[commands.field]] id = "timeout" label = "Timeout (seconds)" type = "integer" option = ["-t", "--timeout"] sources = ["fig"] [[commands.field]] id = "latency" label = "Print latency data" type = "boolean" option = ["-l", "--latency"] sources = ["fig"] [[commands.field]] id = "no_progress" label = "No progress bar" type = "boolean" option = ["-n", "--no-progress"] sources = ["fig"] [[commands.task]] id = "quick" label = "Ten second test" fields = ["url", "connections", "duration"] required = ["url"] set = { connections = [10], duration = [10] } [[commands.group]] id = "basic" label = "Basic" fields = ["url", "connections", "duration", "pipelining", "amount"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["method", "headers", "body", "timeout", "latency", "no_progress"]