Examples Search docs

Benchmarks

Benchmarks catch algorithmic regressions (O(n²) folds, accidental full-table scans, lock convoys) — not vanity ops/sec on laptops.

What to bench

AreaSignal
Append + head CASThroughput under single writer
Fold large streamsSnapshot amortizes re-fold
readAll catch-upPosition scans stay linear
Matching toy plansPlacement solve stays bounded
Effect lattice helpersPure CPU; should be boring-fast

Rules

  1. Deterministic seeds and fixed datasets.
  2. Report medians with clear environment notes — not single-shot peaks.
  3. Fail CI on large regressions only when baseline is pinned intentionally.
  4. Do not bench network to public clouds in default gates.

Property tests · EventStore