summary refs log tree commit diff
path: root/benchtests/scripts/benchout.schema.json
blob: 0eca21b6bd1d7fe7eeef388fbfc3831eeb0a8cec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  "title": "benchmark",
  "type": "object",
  "properties": {
    "timing_type": {
      "type": "string"
    },
    "functions": {
      "title": "Associative array of functions",
      "type": "object",
      "patternProperties": {
        "^[_a-zA-Z][_a-zA-Z0-9]+$": {
          "title": "Function names",
          "type": "object",
          "patternProperties": {
            "^[_a-zA-Z0-9,=.-]*$": {
              "title": "Function variants",
              "type": "object",
              "properties": {
                "duration": {"type": "number"},
                "iterations": {"type": "number"},
                "throughput": {"type": "number"},
                "max": {"type": "number"},
                "min": {"type": "number"},
                "mean": {"type": "number"},
                "timings": {
                  "type": "array",
                  "items": {"type": "number"}
                }
              },
              "required": ["duration", "iterations"],
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        }
      },
      "minProperties": 1
    }
  },
  "required": ["timing_type", "functions"],
  "additionalProperties": false
}