summaryrefslogtreecommitdiff
path: root/benchtests/scripts/benchout_strings.schema.json
blob: 7c9a67134bbdb0385338bcd30c4cd90c80f71f34 (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
43
44
{
  "title": "string 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",
          "properties": {
            "bench-variant": {"type": "string"},
	    "ifuncs": {
              "type": "array",
	      "items": {"type": "string"}
	    },
	    "results": {
              "type": "array",
	      "items": {
                "type": "object",
		"properties": {
                  "timings": {
	            "type": "array",
		    "items": {"type": "number"}
                   }
		 },
		 "additionalProperties": {"type": "number"},
		 "minProperties": 2
	      }
	    }
          },
          "additionalProperties": false
        }
      },
      "minProperties": 1
    }
  },
  "required": ["timing_type", "functions"],
  "additionalProperties": false
}