Benchmark

Measured on real API history.

Breakra run on real version pairs of GitHub's and Stripe's published API descriptions, plus small curated scenarios with expected outcomes. Deterministic: reproduce it with bun run benchmark from the same public sources.

7

GitHub API version pairs

2 · 4 · 1

block · review · safe

15/15

curated scenarios as expected

Real API history

SourceVersionsChanged paths (compared / skipped)VerdictBreakingPotentially breakingUnknownCompatibleDocs-only
github17.0.0..18.0.0666 (25 / 0)review0404616
github18.0.0..19.0.0683 (25 / 0)review03963234
github19.0.0..20.0.0721 (25 / 0)review0601514
github20.0.0..21.0.0745 (25 / 0)block100502
github21.0.0..22.0.0753 (25 / 0)safe00011
github22.0.0..23.0.0832 (25 / 0)block2408213
github23.0.0..24.0.0828 (25 / 0)review00482
stripev2400..v2450419 (0 / 419)not assessed—
stripev2450..v25000 (0 / 0)no changes—
stripev2500..v2550431 (0 / 431)not assessed—
stripev2550..v26020 (0 / 0)no changes—

All 382 changes found: breaking 3 (1%), potentially breaking 53 (14%), unknown 10 (3%), compatible 234 (61%), docs-only 82 (21%).

Curated scenarios: expected vs Breakra

ScenarioExpectedGotPassWhy it matters
API-key authentication becomes required for every operation.reviewreview✓Unauthenticated callers will be rejected (Breakra is stricter than oasdiff here, by design).
Only a description changes.safesafe✓Documentation doesn't change the contract.
A new operation GET /customers.safesafe✓Additive.
An operation (POST /orders) is removed.blockblock✓Callers of a removed operation fail: the only certain break.
The response schema becomes an external $ref.reviewreview✓External refs are never fetched; the change can't be cleared as safe.
total keeps its name but changes from number to string.reviewreview✓A same-name field with a new type breaks typed clients (raised on X by @sreecharantwts).
The new contract is not a valid OpenAPI document (paths is a list).error INVALID_SPECIFICATIONerror INVALID_SPECIFICATION✓Must fail closed: an error, never a verdict (raised on X by @Steven7FGC).
OpenAPI 3.1: request qty gains exclusiveMinimum: 5 (minimum 1 removed).reviewreview✓A tightened bound: the case rule set 0.1.0 missed (fixed in 0.2.0).
OpenAPI 3.1: response email may now be null.reviewreview✓Clients that assume a string may crash on null.
An optional request field note is added.safesafe✓Additive and optional: existing callers are unaffected.
Request qty gains maximum: 10.reviewreview✓Callers sending larger values may now be rejected.
A new required query parameter on GET /orders/{id}.reviewreview✓Existing calls don't send it and may be rejected.
Response enum status gains cancelled.reviewreview✓Exhaustive switch statements may not handle the new value.
Response field email removed.reviewreview✓Consumers that read it may break.
The new contract is Swagger 2.0.error UNSUPPORTED_OPENAPI_VERSIONerror UNSUPPORTED_OPENAPI_VERSION✓Unsupported input is an error, never 'safe'.

How it's measured

Hand-checked findings

PairFindingCheckResult
GitHub 20→21operation_removed: GET /users/{user_id}/projectsV2/{project_number}/fields/{field_id}Absent from the full v21 spec?✓ Confirmed
GitHub 22→23operation_removed: GET and PATCH /organizations/{org}/dependabot/repository-accessAbsent from the full v23 spec?✓ Confirmed (both)
GitHub 18→19response.property_removed inside oneOf branches of GET /orgs/{org}/rulesetsReal removal, or reordered variants?⚠ Likely over-reporting: variants are compared by position. It errs toward "review", never toward "safe".

Known limits

Found a wrong finding? Report it with a minimal before/after pair.