glibc/benchtests/scripts/benchout_strings.schema.json
Su Lifan edddffc9df benchtests: make compare_strings.py accept string as attribute value
Commit ac759b1fbf added attribute
"overlap" to bench-memmove-walk, whose value is a string. This change
makes compare_strings.py fail since benchout_strings.schema.json
requires the values of attributes to be number.

This patch relaxes such constraint.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
2022-03-08 19:42:52 +05:30

50 lines
1.1 KiB
JSON

{
"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
}