{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://chartkit.dev/benchmarks.schema.json",
  "title": "ChartKit benchmarks",
  "type": "object",
  "required": [
    "round",
    "measured",
    "methodology",
    "bundleGzip",
    "browserMs",
    "samplingNoneMs",
    "ssrMs",
    "agents",
    "paint",
    "bundleMatrix",
    "ssrMatrix"
  ],
  "additionalProperties": true,
  "properties": {
    "round": {
      "type": "integer"
    },
    "measured": {
      "type": "string"
    },
    "methodology": {
      "type": "object"
    },
    "bundleGzip": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "lib",
          "bytes"
        ],
        "properties": {
          "lib": {
            "type": "string"
          },
          "bytes": {
            "type": "integer"
          },
          "reactExternal": {
            "type": "boolean"
          }
        }
      }
    },
    "browserMs": {
      "type": "array"
    },
    "samplingNoneMs": {
      "type": "array"
    },
    "ssrMs": {
      "type": "array"
    },
    "agents": {
      "type": "array"
    },
    "paint": {
      "type": "object",
      "required": [
        "measuredAt",
        "libraries",
        "rows",
        "caption"
      ],
      "properties": {
        "measuredAt": {
          "type": "string"
        },
        "libraries": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "rows": {
          "type": "array"
        },
        "caption": {
          "type": "string"
        }
      }
    },
    "bundleMatrix": {
      "type": "object",
      "required": [
        "measuredAt",
        "libraries",
        "rows",
        "counts",
        "caption"
      ],
      "properties": {
        "measuredAt": {
          "type": "string"
        },
        "libraries": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "rows": {
          "type": "array"
        },
        "counts": {
          "type": "object"
        },
        "caption": {
          "type": "string"
        }
      }
    },
    "ssrMatrix": {
      "type": "object",
      "required": [
        "measuredAt",
        "libraries",
        "rows",
        "counts",
        "caption"
      ],
      "properties": {
        "measuredAt": {
          "type": "string"
        },
        "libraries": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "rows": {
          "type": "array"
        },
        "counts": {
          "type": "object"
        },
        "caption": {
          "type": "string"
        }
      }
    }
  }
}
