{
  "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/wrk.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "url",
        "label": "URL",
        "type": "url",
        "position": 0,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "connections",
        "label": "Connections",
        "type": "integer",
        "option": [
          "-c"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "threads",
        "label": "Threads",
        "type": "integer",
        "option": [
          "-t"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "duration",
        "label": "Duration (e.g. 30s)",
        "type": "string",
        "option": [
          "-d"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "timeout",
        "label": "Timeout (e.g. 2s)",
        "type": "string",
        "option": [
          "--timeout"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "latency",
        "label": "Print latency statistics",
        "type": "boolean",
        "option": [
          "--latency"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "header",
        "label": "Header",
        "type": "string",
        "option": [
          "-H"
        ],
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "script",
        "label": "Lua script",
        "type": "path",
        "option": [
          "-s"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "bench",
        "label": "Benchmark",
        "fields": [
          "url",
          "connections",
          "threads",
          "duration",
          "latency",
          "timeout",
          "header",
          "script"
        ],
        "required": [
          "url"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "url",
          "connections",
          "threads",
          "duration",
          "latency",
          "timeout",
          "header",
          "script"
        ]
      }
    ]
  }
}
