about summary refs log tree commit diff
path: root/benchtests/scripts/benchout_strings.schema.json
blob: bfd9b4e6c05816acaaf0ac97d940b7ab85038e63 (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
44
45
46
47
48
49
{
  "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": {
		   "oneOf": [
		     { "type": "number" },
		     { "type": "string" }
		   ]
		 },
		 "minProperties": 2
	      }
	    }
          },
          "additionalProperties": false
        }
      },
      "minProperties": 1
    }
  },
  "required": ["timing_type", "functions"],
  "additionalProperties": false
}