-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
benchmark-profile.json
34 lines (34 loc) · 1.36 KB
/
benchmark-profile.json
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
{
"title": "Profile Benchmark Options",
"type": "object",
"properties": {
"repeats": {
"title": "Number of repeats",
"type": "integer",
"minimum": 1,
"default": 100
},
"scale": {
"title": "Profiling scale",
"description": "Whether to take multiple profiles, one for each repeat (mico) or one profile averaging across all repeats (macro). Macro-profiling includes setup and cleanup steps which may bias the results for scenarios where expensive operations are performed in these steps. Micro-profiling may be unsuitable for very fast scenarios, and when the browser limits the sampling interval.",
"type": "string",
"enum": ["micro", "macro"],
"default": "micro"
},
"sampleInterval": {
"title": "Sample interval",
"description": "Sampling interval (in milliseconds). Browsers are not required to take samples at this rate and may increase it (Chrome uses 16ms on Windows and 10ms elsewhere).",
"type": "integer",
"exclusiveMinimum": 0,
"default": 5
},
"maxBufferSize": {
"title": "Sample buffer size limit",
"description": "When the limit of samples gets exceeded, the profiling will stop prematurely.",
"type": "number",
"exclusiveMinimum": 0,
"default": 10000
}
},
"required": ["repeats", "scale", "sampleInterval", "maxBufferSize"]
}