{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/nao1215/himorime/main/schema/himorime.schema.json", "title": "himorime benchmark suite", "description": "A versioned himorime benchmark suite. See https://nao1215.github.io/himorime/configuration/.", "type": "object", "required": [ "version", "name", "benchmarks" ], "additionalProperties": false, "properties": { "version": { "description": "Suite format version. Only \"1\" exists.", "type": "string", "enum": [ "1" ] }, "name": { "description": "Suite name shown in reports.", "type": "string", "minLength": 1, "pattern": "\\S" }, "description": { "description": "What the suite is for.", "type": "string" }, "defaults": { "description": "Settings every benchmark inherits.", "type": "object", "additionalProperties": false, "properties": { "warmup": { "description": "Unmeasured runs of every command before measuring starts. Default 1.", "type": "integer", "minimum": 0, "maximum": 10000 }, "runs": { "description": "Measure exactly this many runs per command. When absent, runs are adaptive: at least min_runs and min_time, at most max_runs.", "type": "integer", "minimum": 1, "maximum": 100000 }, "min_runs": { "description": "Adaptive runs: the fewest runs per command. Default 10.", "type": "integer", "minimum": 1, "maximum": 100000 }, "max_runs": { "description": "Adaptive runs: the most runs per command. Default 100.", "type": "integer", "minimum": 1, "maximum": 100000 }, "min_time": { "description": "Adaptive runs: keep measuring until each command has run for at least this long in total. Default 2s.", "$ref": "#/definitions/duration" }, "timeout": { "description": "Per-run time limit. A run that exceeds it is stopped with its whole process tree and fails the benchmark. Default 1m.", "$ref": "#/definitions/positiveDuration" }, "cwd": { "description": "Working directory: relative to ${root}, the suite directory in the revision being measured, or starting with ${root}, ${head_root} or ${workdir}. Default: ${root}.", "$ref": "#/definitions/pathTemplate" }, "env": { "description": "Environment variables added to the inherited environment. Values may use variables.", "$ref": "#/definitions/env" }, "stdout": { "description": "\"discard\" (default), or a path inside ${workdir} that receives the standard output of the latest run.", "$ref": "#/definitions/output" }, "stderr": { "description": "\"discard\" (default), or a path inside ${workdir} that receives the standard error of the latest run. A failing run's stderr tail is reported either way.", "$ref": "#/definitions/output" }, "exit_codes": { "description": "Exit statuses that count as success. Default [0].", "$ref": "#/definitions/exitCodes" }, "metrics": { "$ref": "#/definitions/metricsDefaults" }, "regression": { "$ref": "#/definitions/regression" } } }, "build": { "description": "Builds ${artifact} before measuring; in a comparison it runs once in each revision, with ${root} pointing into that revision.", "$ref": "#/definitions/exec" }, "benchmarks": { "description": "The benchmark cases.", "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/benchmark" } }, "report": { "description": "Report files written after every run, relative to the suite file.", "type": "object", "additionalProperties": false, "properties": { "outputs": { "description": "Report files.", "type": "array", "items": { "description": "One report file.", "type": "object", "required": [ "format", "path" ], "additionalProperties": false, "properties": { "format": { "description": "Report format.", "enum": [ "json", "csv", "markdown", "github", "samples-csv" ] }, "path": { "description": "Relative path of the file.", "$ref": "#/definitions/relativePath" }, "section": { "description": "Markdown only: replace only the text between the himorime:begin and himorime:end lines of this name. Lowercase letters, digits and '-'.", "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" } } } }, "versions": { "description": "Tools whose versions every report records, such as jc: [jc, --version]. Each runs once before measuring, with a 30s limit; the first non-empty line is recorded, and a failure fails the run.", "type": "object", "propertyNames": { "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$" }, "additionalProperties": { "$ref": "#/definitions/versionCommand" } } } } }, "definitions": { "duration": { "description": "A duration such as 500ms, 2s or 1m30s. Units: ns, us, µs, ms, s, m, h. Nanoseconds are whole, and a fraction of a larger unit must come to whole nanoseconds.", "type": "string", "pattern": "^([0-9]+(\\.[0-9]+)?(us|µs|ms|s|m|h)|[0-9]+ns)+$" }, "positiveDuration": { "description": "A duration greater than zero.", "type": "string", "pattern": "^([0-9]+(\\.[0-9]+)?(us|µs|ms|s|m|h)|[0-9]+ns)+$", "not": { "pattern": "^(0+(\\.0+)?(ns|us|µs|ms|s|m|h))+$" } }, "budget": { "description": "An upper bound on a duration: < or <= followed by a duration greater than zero, such as \"< 20ms\".", "type": "string", "pattern": "^\\s*(<=|<)\\s*(([0-9]+(\\.[0-9]+)?(us|µs|ms|s|m|h)|[0-9]+ns)+)\\s*$", "not": { "pattern": "^\\s*(<=|<)\\s*(0+(\\.0+)?(ns|us|µs|ms|s|m|h))+\\s*$" } }, "bytesBudget": { "description": "An upper bound on a byte size: < or <= followed by a size greater than zero, such as \"<= 64MiB\". KB, MB, GB and TB are powers of 1000; KiB, MiB, GiB and TiB powers of 1024.", "type": "string", "pattern": "^\\s*(<=|<)\\s*([0-9]+(\\.[0-9]+)?)\\s*(B|bytes|KB|MB|GB|TB|KiB|MiB|GiB|TiB)\\s*$" }, "rateBudget": { "description": "A lower bound on throughput: > or >= followed by a rate greater than zero in the declared work unit per second, such as \">= 50MiB/s\" or \">= 1000 records/s\".", "type": "string", "pattern": "^\\s*(>=|>)\\s*([0-9]+(\\.[0-9]+)?)\\s*([A-Za-z][A-Za-z0-9_-]*)/s\\s*$" }, "percentBudget": { "description": "A bound on a percentage in either direction, such as \"<= 150%\".", "type": "string", "pattern": "^\\s*(<=|<|>=|>)\\s*([0-9]+(\\.[0-9]+)?)\\s*%\\s*$" }, "bytes": { "description": "A byte size such as 1MiB.", "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?\\s*(B|bytes|KB|MB|GB|TB|KiB|MiB|GiB|TiB)$" }, "rate": { "description": "A rate in the declared work unit per second, such as 1MiB/s or \"100 records/s\".", "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?\\s*[A-Za-z][A-Za-z0-9_-]*/s$" }, "durationBudgets": { "description": "Budgets of a duration keyed by aggregation: min, max, mean, median, or a percentile p1 to p99.9 such as p95.", "type": "object", "minProperties": 1, "propertyNames": { "pattern": "^(min|max|mean|median|p([1-9][0-9]?)(\\.[0-9]+)?)$" }, "additionalProperties": { "$ref": "#/definitions/budget" } }, "bytesBudgets": { "description": "Budgets of a byte size keyed by aggregation: min, max, mean, median, or a percentile p1 to p99.9 such as p95.", "type": "object", "minProperties": 1, "propertyNames": { "pattern": "^(min|max|mean|median|p([1-9][0-9]?)(\\.[0-9]+)?)$" }, "additionalProperties": { "$ref": "#/definitions/bytesBudget" } }, "rateBudgets": { "description": "Budgets of throughput keyed by aggregation: min, max, mean, median, or a percentile p1 to p99.9 such as p95.", "type": "object", "minProperties": 1, "propertyNames": { "pattern": "^(min|max|mean|median|p([1-9][0-9]?)(\\.[0-9]+)?)$" }, "additionalProperties": { "$ref": "#/definitions/rateBudget" } }, "percentBudgets": { "description": "Budgets of a percentage keyed by aggregation: min, max, mean, median, or a percentile p1 to p99.9 such as p95.", "type": "object", "minProperties": 1, "propertyNames": { "pattern": "^(min|max|mean|median|p([1-9][0-9]?)(\\.[0-9]+)?)$" }, "additionalProperties": { "$ref": "#/definitions/percentBudget" } }, "percent": { "description": "A percentage greater than 0 and at most 1000.", "oneOf": [ { "type": "number", "exclusiveMinimum": 0, "maximum": 1000 }, { "type": "string", "pattern": "^([0-9]+(\\.[0-9]+)?)%$", "not": { "pattern": "^0+(\\.0+)?%$|^0*([1-9][0-9]{4,}|[2-9][0-9]{3}|1[1-9][0-9]{2}|10[1-9][0-9]|100[1-9])(\\.[0-9]+)?%$|^0*1000\\.[0-9]*[1-9][0-9]*%$" } } ] }, "pathTemplate": { "description": "A relative path, which is relative to ${root}, or a path starting with ${root}, ${head_root} or ${workdir}. Absolute paths and '..' after a variable are rejected.", "type": "string", "minLength": 1, "not": { "pattern": "^(/|\\\\|~|[A-Za-z]:)" } }, "relativePath": { "description": "A relative path that stays below its base directory.", "type": "string", "minLength": 1, "not": { "pattern": "(^(/|\\\\|~|[A-Za-z]:))|(^|[/\\\\])\\.\\.([/\\\\]|$)|\\$\\{" } }, "output": { "description": "\"discard\" or a relative path inside ${workdir}.", "$ref": "#/definitions/relativePath" }, "env": { "description": "Environment variables.", "type": "object", "propertyNames": { "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" }, "additionalProperties": { "type": "string" } }, "exitCodes": { "description": "Exit statuses that count as success.", "type": "array", "minItems": 1, "items": { "type": "integer", "minimum": 0 } }, "command": { "description": "A list of arguments, or a string used with shell: true.", "oneOf": [ { "type": "array", "minItems": 1, "items": [ { "type": "string", "minLength": 1, "pattern": "\\S" } ], "additionalItems": { "type": "string" } }, { "type": "string", "minLength": 1, "pattern": "\\S" } ] }, "versionCommand": { "description": "A list of arguments whose first element is the program; no shell.", "type": "array", "minItems": 1, "items": [ { "type": "string", "minLength": 1, "pattern": "\\S" } ], "additionalItems": { "type": "string" } }, "shellRule": { "description": "A string command requires shell: true; shell: true requires a string command.", "oneOf": [ { "properties": { "command": { "type": "array" }, "shell": { "const": false } } }, { "properties": { "command": { "type": "string" } }, "required": [ "shell" ], "allOf": [ { "properties": { "shell": { "const": true } } } ] } ] }, "exec": { "description": "A process himorime starts: the build or a hook. `command` is a list of arguments run without a shell, or a string together with `shell: true`.", "type": "object", "required": [ "command" ], "additionalProperties": false, "properties": { "command": { "description": "The command: a list of arguments (no shell), or a string when shell is true.", "$ref": "#/definitions/command" }, "shell": { "description": "Run the command string through /bin/sh -c (cmd.exe /d /s /c on Windows). Variables substituted into the string are quoted for that shell.", "type": "boolean" }, "cwd": { "description": "Working directory: relative to ${root} of the revision being built or measured (the default), or starting with ${root}, ${head_root}, or ${workdir} in hooks.", "$ref": "#/definitions/pathTemplate" }, "env": { "description": "Environment variables added to the inherited environment. Values may use variables.", "$ref": "#/definitions/env" }, "timeout": { "description": "Time limit for this process. Default 10m for build, 5m for hooks.", "$ref": "#/definitions/positiveDuration" } }, "allOf": [ { "$ref": "#/definitions/shellRule" } ] }, "benchCommand": { "description": "One named command of a benchmark.", "type": "object", "required": [ "command" ], "additionalProperties": false, "properties": { "command": { "description": "The command: a list of arguments (no shell), or a string when shell is true.", "$ref": "#/definitions/command" }, "shell": { "description": "Run the command string through /bin/sh -c (cmd.exe /d /s /c on Windows). Variables substituted into the string are quoted for that shell.", "type": "boolean" }, "cwd": { "description": "Working directory: relative to ${root}, the suite directory in the revision being measured, or starting with ${root}, ${head_root} or ${workdir}. Default: ${root}.", "$ref": "#/definitions/pathTemplate" }, "env": { "description": "Environment variables added to the inherited environment. Values may use variables.", "$ref": "#/definitions/env" }, "timeout": { "description": "Per-run time limit. A run that exceeds it is stopped with its whole process tree and fails the benchmark. Default 1m.", "$ref": "#/definitions/positiveDuration" }, "stdout": { "description": "\"discard\" (default), or a path inside ${workdir} that receives the standard output of the latest run.", "$ref": "#/definitions/output" }, "stderr": { "description": "\"discard\" (default), or a path inside ${workdir} that receives the standard error of the latest run. A failing run's stderr tail is reported either way.", "$ref": "#/definitions/output" }, "exit_codes": { "description": "Exit statuses that count as success. Default [0].", "$ref": "#/definitions/exitCodes" }, "budget": { "description": "Absolute budgets for this command.", "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "latency": { "description": "Latency budgets keyed by aggregation, such as {p95: \"<= 100ms\"}.", "$ref": "#/definitions/durationBudgets" }, "throughput": { "description": "Throughput budgets keyed by aggregation. Needs metrics.throughput.work.", "$ref": "#/definitions/rateBudgets" }, "cpu_user": { "description": "User CPU time budgets keyed by aggregation. Needs metrics.cpu.", "$ref": "#/definitions/durationBudgets" }, "cpu_system": { "description": "System CPU time budgets keyed by aggregation. Needs metrics.cpu.", "$ref": "#/definitions/durationBudgets" }, "cpu_total": { "description": "Total (user + system) CPU time budgets keyed by aggregation. Needs metrics.cpu.", "$ref": "#/definitions/durationBudgets" }, "cpu_utilization": { "description": "CPU utilization budgets keyed by aggregation, in percent of one CPU; above 100% means more than one CPU was busy. Needs metrics.cpu.", "$ref": "#/definitions/percentBudgets" }, "peak_rss": { "description": "Peak resident set size budgets keyed by aggregation. Needs metrics.memory.", "$ref": "#/definitions/bytesBudgets" } } } }, "allOf": [ { "$ref": "#/definitions/shellRule" } ] }, "regression": { "description": "How a base revision and the working tree are compared (himorime compare / himorime ci).", "type": "object", "additionalProperties": false, "properties": { "confidence": { "description": "Bootstrap probability required to call a regression, an improvement or a pass. Default 0.95.", "type": "number", "minimum": 0.5, "maximum": 0.999 }, "min_samples": { "description": "Fewest samples per side for a verdict; adaptive comparisons run until every command has this many. Default 10.", "type": "integer", "minimum": 2, "maximum": 100000 }, "max_cv": { "description": "Overlapping sample ranges are inconclusive when either side exceeds this dispersion: IQR / 1.349 / median, or standard deviation / mean for the mean. 0 disables the check. Default 0.5.", "type": "number", "minimum": 0, "maximum": 10 }, "pairing": { "description": "How base and head samples are compared. independent (default) resamples each side separately. rounds compares the per-round ratios head / base, which cancels a slowdown shared by both runs of a round; use it on noisy machines.", "enum": [ "independent", "rounds" ] }, "latency": { "$ref": "#/definitions/latencyRegression" }, "cpu_total": { "$ref": "#/definitions/cpuRegression" }, "peak_rss": { "$ref": "#/definitions/memoryRegression" } } }, "regressionBenchmark": { "description": "How a base revision and the working tree are compared (himorime compare / himorime ci).", "type": "object", "additionalProperties": false, "properties": { "confidence": { "description": "Bootstrap probability required to call a regression, an improvement or a pass. Default 0.95.", "type": "number", "minimum": 0.5, "maximum": 0.999 }, "min_samples": { "description": "Fewest samples per side for a verdict; adaptive comparisons run until every command has this many. Default 10.", "type": "integer", "minimum": 2, "maximum": 100000 }, "max_cv": { "description": "Overlapping sample ranges are inconclusive when either side exceeds this dispersion: IQR / 1.349 / median, or standard deviation / mean for the mean. 0 disables the check. Default 0.5.", "type": "number", "minimum": 0, "maximum": 10 }, "pairing": { "description": "How base and head samples are compared. independent (default) resamples each side separately. rounds compares the per-round ratios head / base, which cancels a slowdown shared by both runs of a round; use it on noisy machines.", "enum": [ "independent", "rounds" ] }, "commands": { "description": "Compare only these commands. Default: every command.", "type": "array", "minItems": 1, "items": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$" } }, "latency": { "$ref": "#/definitions/latencyRegression" }, "cpu_total": { "$ref": "#/definitions/cpuRegression" }, "peak_rss": { "$ref": "#/definitions/memoryRegression" } } }, "benchmark": { "description": "One benchmark case.", "type": "object", "required": [ "name", "commands" ], "additionalProperties": false, "properties": { "name": { "description": "Unique benchmark name shown in reports.", "type": "string", "minLength": 1, "pattern": "\\S" }, "description": { "description": "What the benchmark measures.", "type": "string" }, "tags": { "description": "Labels for --tag and --skip-tag.", "type": "array", "items": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$" } }, "warmup": { "description": "Unmeasured runs of every command before measuring starts. Default 1.", "type": "integer", "minimum": 0, "maximum": 10000 }, "runs": { "description": "Measure exactly this many runs per command. When absent, runs are adaptive: at least min_runs and min_time, at most max_runs.", "type": "integer", "minimum": 1, "maximum": 100000 }, "min_runs": { "description": "Adaptive runs: the fewest runs per command. Default 10.", "type": "integer", "minimum": 1, "maximum": 100000 }, "max_runs": { "description": "Adaptive runs: the most runs per command. Default 100.", "type": "integer", "minimum": 1, "maximum": 100000 }, "min_time": { "description": "Adaptive runs: keep measuring until each command has run for at least this long in total. Default 2s.", "$ref": "#/definitions/duration" }, "timeout": { "description": "Per-run time limit. A run that exceeds it is stopped with its whole process tree and fails the benchmark. Default 1m.", "$ref": "#/definitions/positiveDuration" }, "cwd": { "description": "Working directory: relative to ${root}, the suite directory in the revision being measured, or starting with ${root}, ${head_root} or ${workdir}. Default: ${root}.", "$ref": "#/definitions/pathTemplate" }, "env": { "description": "Environment variables added to the inherited environment. Values may use variables.", "$ref": "#/definitions/env" }, "stdout": { "description": "\"discard\" (default), or a path inside ${workdir} that receives the standard output of the latest run.", "$ref": "#/definitions/output" }, "stderr": { "description": "\"discard\" (default), or a path inside ${workdir} that receives the standard error of the latest run. A failing run's stderr tail is reported either way.", "$ref": "#/definitions/output" }, "exit_codes": { "description": "Exit statuses that count as success. Default [0].", "$ref": "#/definitions/exitCodes" }, "stdin": { "description": "Standard input of every run: a fixture path (reopened for each run), or a mapping with file or content.", "oneOf": [ { "description": "Fixture path: relative to ${root}, or starting with ${root}, ${head_root} or ${workdir}. Use ${head_root} to give every revision the working tree's file.", "$ref": "#/definitions/pathTemplate" }, { "description": "Standard input source.", "type": "object", "additionalProperties": false, "properties": { "file": { "description": "Fixture path, as in the string form.", "$ref": "#/definitions/pathTemplate" }, "content": { "description": "Inline text passed on standard input.", "type": "string" } }, "minProperties": 1, "maxProperties": 1 } ] }, "terminal": { "description": "Run every command on an 80x24 pseudo-terminal (Linux and macOS) and type stdin into it one key at a time. The input must end the program. stderr cannot be set.", "type": "boolean" }, "setup": { "description": "Processes run once per benchmark (per revision in a comparison) before any warmup. A failure fails the benchmark.", "type": "array", "items": { "$ref": "#/definitions/exec" } }, "prepare_each": { "description": "Processes run before every warmup and measured run, outside the measured time.", "type": "array", "items": { "$ref": "#/definitions/exec" } }, "cleanup": { "description": "Processes run after the benchmark whether it passed, failed or was interrupted.", "type": "array", "items": { "$ref": "#/definitions/exec" } }, "baseline": { "description": "Command name that RELATIVE and vs_baseline are computed against.", "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$" }, "commands": { "description": "Named commands measured side by side. Names use letters, digits, '.', '_' and '-'.", "type": "object", "minProperties": 1, "propertyNames": { "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$" }, "additionalProperties": { "$ref": "#/definitions/benchCommand" } }, "metrics": { "$ref": "#/definitions/metrics" }, "regression": { "$ref": "#/definitions/regressionBenchmark" } } }, "work": { "description": "The work one run does. Throughput is this work divided by the run's latency. Declare exactly one of value and file_size.", "type": "object", "additionalProperties": false, "properties": { "value": { "description": "A fixed amount of work per run, greater than zero, such as 100000.", "type": "number", "exclusiveMinimum": 0 }, "file_size": { "description": "A file whose size in bytes is the work of each run: relative to ${root}, or starting with ${root}, ${head_root} or ${workdir}. Read before every run, outside the measured time.", "$ref": "#/definitions/pathTemplate" }, "unit": { "description": "The unit of work, such as records, lines or bytes. Default: operations for value, bytes for file_size.", "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9_-]*$" } } }, "metricsDefaults": { "description": "Metrics every benchmark measures besides latency. Throughput is declared per benchmark.", "type": "object", "additionalProperties": false, "properties": { "cpu": { "description": "Measure user, system and total CPU time and CPU utilization of the process tree.", "type": "boolean" }, "memory": { "description": "Measure the peak resident set size (RSS) of the process tree.", "type": "boolean" }, "unsupported": { "description": "What to do when this platform cannot measure a requested metric: fail (default) stops before measuring, skip reports the metric as unsupported and skips its budgets and comparisons.", "enum": [ "fail", "skip" ] } } }, "metrics": { "description": "What the benchmark measures besides latency.", "type": "object", "additionalProperties": false, "properties": { "throughput": { "description": "Compute throughput from declared work.", "type": "object", "required": [ "work" ], "additionalProperties": false, "properties": { "work": { "$ref": "#/definitions/work" } } }, "cpu": { "description": "Measure user, system and total CPU time and CPU utilization of the process tree.", "type": "boolean" }, "memory": { "description": "Measure the peak resident set size (RSS) of the process tree.", "type": "boolean" }, "unsupported": { "description": "What to do when this platform cannot measure a requested metric: fail (default) stops before measuring, skip reports the metric as unsupported and skips its budgets and comparisons.", "enum": [ "fail", "skip" ] } } }, "latencyRegression": { "description": "How latency (wall-clock time; lower is better) is compared.", "type": "object", "additionalProperties": false, "properties": { "max_percent": { "description": "Tolerated degradation in percent: a number such as 10, or a string such as \"10%\". Default 10.", "$ref": "#/definitions/percent" }, "min_difference": { "description": "Smaller absolute differences pass: a duration such as 1ms for latency and cpu, a byte size such as 1MiB for memory. Default: none.", "$ref": "#/definitions/duration" }, "gate": { "description": "Whether this metric's verdict decides the exit status (default true). With false it is still compared and reported, marked as not gated, but never fails the run.", "type": "boolean" }, "statistic": { "description": "Statistic compared: median (default) or mean.", "enum": [ "median", "mean" ] } } }, "cpuRegression": { "description": "How total CPU time (lower is better) is compared.", "type": "object", "additionalProperties": false, "properties": { "max_percent": { "description": "Tolerated degradation in percent: a number such as 10, or a string such as \"10%\". Default 10.", "$ref": "#/definitions/percent" }, "min_difference": { "description": "The smallest absolute difference that can be a regression or an improvement, such as 1ms. Default: none.", "$ref": "#/definitions/duration" }, "gate": { "description": "Whether this metric's verdict decides the exit status (default true). With false it is still compared and reported, marked as not gated, but never fails the run.", "type": "boolean" }, "statistic": { "description": "Statistic compared: median (default) or mean.", "enum": [ "median", "mean" ] } } }, "memoryRegression": { "description": "How peak RSS (lower is better) is compared.", "type": "object", "additionalProperties": false, "properties": { "max_percent": { "description": "Tolerated degradation in percent: a number such as 10, or a string such as \"10%\". Default 10.", "$ref": "#/definitions/percent" }, "min_difference": { "description": "The smallest absolute difference that can be a regression or an improvement, such as 1MiB. Default: none.", "$ref": "#/definitions/bytes" }, "gate": { "description": "Whether this metric's verdict decides the exit status (default true). With false it is still compared and reported, marked as not gated, but never fails the run.", "type": "boolean" }, "statistic": { "description": "Statistic compared: median (default) or mean.", "enum": [ "median", "mean" ] } } } } }