{
  "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/autocannon.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "url",
        "label": "URL",
        "type": "url",
        "position": 0,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "connections",
        "label": "Connections",
        "type": "integer",
        "option": [
          "-c",
          "--connections"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "duration",
        "label": "Duration (seconds)",
        "type": "integer",
        "option": [
          "-d",
          "--duration"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "pipelining",
        "label": "Pipelined requests",
        "type": "integer",
        "option": [
          "-p",
          "--pipelining"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "amount",
        "label": "Total requests",
        "type": "integer",
        "option": [
          "-a",
          "--amount"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "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"
        ]
      },
      {
        "id": "headers",
        "label": "Request headers (K=V)",
        "type": "string",
        "option": [
          "-H",
          "--headers"
        ],
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "body",
        "label": "Request body",
        "type": "string",
        "option": [
          "-b",
          "--body"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "timeout",
        "label": "Timeout (seconds)",
        "type": "integer",
        "option": [
          "-t",
          "--timeout"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "latency",
        "label": "Print latency data",
        "type": "boolean",
        "option": [
          "-l",
          "--latency"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_progress",
        "label": "No progress bar",
        "type": "boolean",
        "option": [
          "-n",
          "--no-progress"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "quick",
        "label": "Ten second test",
        "fields": [
          "url",
          "connections",
          "duration"
        ],
        "required": [
          "url"
        ],
        "set": {
          "connections": [
            10
          ],
          "duration": [
            10
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "url",
          "connections",
          "duration",
          "pipelining",
          "amount"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "method",
          "headers",
          "body",
          "timeout",
          "latency",
          "no_progress"
        ]
      }
    ]
  }
}
