blob: affb7c11f492457728323f0695300b98f9d81714 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001{
2 "title": "benchmark",
3 "type": "object",
4 "properties": {
5 "timing_type": {
6 "type": "string"
7 },
8 "functions": {
9 "title": "Associative array of functions",
10 "type": "object",
11 "patternProperties": {
12 "^[_a-zA-Z][_a-zA-Z0-9]+$": {
13 "title": "Function names",
14 "type": "object",
15 "patternProperties": {
16 "^[_a-zA-Z0-9]*$": {
17 "title": "Function variants",
18 "type": "object",
19 "properties": {
20 "duration": {"type": "number"},
21 "iterations": {"type": "number"},
22 "max": {"type": "number"},
23 "min": {"type": "number"},
24 "mean": {"type": "number"},
25 "timings": {
26 "type": "array",
27 "items": {"type": "number"}
28 }
29 },
30 "required": ["duration", "iterations", "max", "min", "mean"],
31 "additionalProperties": false
32 }
33 },
34 "additionalProperties": false
35 }
36 },
37 "minProperties": 1
38 }
39 },
40 "required": ["timing_type", "functions"],
41 "additionalProperties": false
42}