summaryrefslogtreecommitdiff
path: root/benchtests/scripts/benchout.schema.json
blob: affb7c11f492457728323f0695300b98f9d81714 (plain)
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
{
  "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"},
                "max": {"type": "number"},
                "min": {"type": "number"},
                "mean": {"type": "number"},
                "timings": {
                  "type": "array",
                  "items": {"type": "number"}
                }
              },
              "required": ["duration", "iterations", "max", "min", "mean"],
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        }
      },
      "minProperties": 1
    }
  },
  "required": ["timing_type", "functions"],
  "additionalProperties": false
}