Skip to content

Latest commit

 

History

History
134 lines (125 loc) · 5.89 KB

glossary.md

File metadata and controls

134 lines (125 loc) · 5.89 KB

Glossary

Glossary of terms for Bencher concepts.

Continuous Benchmarking

  • Run: A single continuous benchmarking invocation which generates a Report.
  • Report: A collection of Benchmarks and their Metrics for a particular Branch and Testbed.
  • Series: A distinct combination of Testbed, Variant, and Measure. Each Series has its own Metric history and bills as its own Series. A Series does not include a Branch.
  • Line: A Series plotted on one Branch.
  • Permutation: A unique combination of Branch, Testbed, Benchmark, and Measure. A Permutation has a separate Line per Variant of its Benchmark.

Dimensions

  • Branch: The git ref used when running a Report (ie branch name or tag).
  • Head: The current Head for a Branch. A Head may reference the most recent Start Point, if there is one. A Head is a sub-dimension of a Branch.
  • Start Point: Another Branch at a specific version (and git hash, if available). Historical Metrics and optionally Thresholds are copied over from the Start Point.
  • Testbed: The name of the testing environment used for a Run.
  • Spec: A hardware specification that describes the resources used for a Run. When a Report is created, the Testbed's current Spec at that point in time is recorded with the Report. Only results from the same Testbed and Spec are used for Thresholds. When using Bencher Bare Metal, a Job declares the Spec it needs, and a Runner only claims Jobs for Specs it supports. A Spec is a sub-dimension of a Testbed.
  • Benchmark: A named performance regression test. A Benchmark may be ignored so it does not generate Alerts.
  • Parameter: 1 key mapped to 1 JSON scalar.
  • Parameters: The full Parameter Set of 1 Variant.
  • Parameter Set: A map of Parameters. Each key maps to a JSON scalar: a string, a number, or a boolean. Values are canonicalized, so 16, 16.0, and 1.6e1 are the same value. A Parameter Set may carry at most 8 keys. In a parameters filter, a Parameter Set may name only some keys, and it matches every Variant whose Parameters hold the same value for each key it names.
  • Variant: A Benchmark with 1 Parameter Set. If no Parameters are declared, a Benchmark has a single Variant with empty Parameters. A Variant is a sub-dimension of a Benchmark.
  • Measure: The unit of measurement for a Metric. For example, Latency and Throughput with units of nanoseconds (ns) and operations / second (ops/s) respectively.
  • Metric: A single, point-in-time performance regression test result: one named Value collected for a Measure. The point estimate is the value Metric. The former deprecated shape that collected up to three Values: value, lower_value, and upper_value is the Metric Triple. A Metric is sub-dimension of a Measure.

Thresholds

  • Threshold: Used to catch performance regressions. A Threshold is assigned to a unique combination of: Branch, Testbed, parameters filter, Measure, and Metric name. A parameters filter can be specified to select the Variants a Threshold checks. A parameters filter is a list of Parameter Sets, and it matches a Variant if any of its Parameter Sets matches that Variant. An empty filter matches every Variant.
  • Model: The combination of a Test and its parameters for a Threshold.
  • Test: Used by a Threshold to detect performance regressions. For example, a z-score or t-test.
  • Boundary: A Model must have a Lower Boundary, Upper Boundary, or both. A Lower Boundary is used when a smaller value would indicate a performance regression. An Upper Boundary is used when a larger value would indicate a performance regression.
  • Check: A Threshold checks a Metric: its Model runs its Test against the Line history and calculates Boundary Limits.
  • Boundary Limit: Each Boundary is used to calculate a Boundary Limit for each new Metric that a Threshold checks.
  • Alert: An Alert is generated when a new Metric is below a Lower Boundary Limit or above an Upper Boundary Limit. An Alert is not generated when the Benchmark is ignored.

Bare Metal

  • Runner: A remote benchmark executor that runs on dedicated, bare metal hardware. The runner opens a single WebSocket connection to the API server, claims Jobs that match its Specs, executes them, and reports back results.
  • Job: Tracks the lifecycle of a remote benchmark execution request. A Job moves through: pending, claimed, and running, then completed and processed. It can end failed or canceled instead, and it is unknown while the server has lost contact with its Runner. A completed Job's results are processed into a Report. Processed, failed, and canceled are terminal.
  • Unknown: The Job state in which the server has lost contact with the Runner and does not yet know the outcome. It resolves when the Runner speaks again or when the Job's deadline passes.
  • Claim: A Runner claims a pending Job. A Job declares the Spec it needs, and a Runner only claims Jobs for Specs it supports.
  • Image: An OCI container image of benchmark code and its dependencies.
  • Sandbox: An isolation mechanism that allows for safe multi-tenancy on a Runner. Sandboxed Jobs run in a Firecracker microVM. Non-sandboxed Jobs must be trusted and run directly on the host.
  • Host Tuning: Changes made to the Runner's bare metal server to achieve consistent benchmark results.
  • Callback: An HTTP request Bencher sends once when a bare metal Job reaches a terminal state, supplied with the Run. A Callback operates like a per-Run webhook.
  • Attach: bencher run --job, which waits for a submitted Job and posts its results as the submitting Run would have.
  • Linked Repository: The one GitHub repository a Project's dispatches go to, linked in the Project's Settings by a user with push access to it. Bencher mints the dispatch token for it.