Documentation
¶
Overview ¶
Package benchcorpus supplies the review store that index benchmarks read: a copy of a real store named by BAUM_BENCH_STORE, or a deterministic synthetic one shaped like real stores. It is for benchmarks only; nothing imports it in production.
Index ¶
Constants ¶
const ( PullRequests = 64 // Version counts cycle through 1..MaxVersions. MaxVersions = 4 )
Synthetic corpus shape, close to a busy real clone: documents of about 150 KB, most of it patch text under index.hunks[].diff.
const Env = "BAUM_BENCH_STORE"
Env names a directory holding the versions.sqlite to measure. It is opened read-only and never written.
const Repository = "acme/widgets"
Repository is the identity of every synthetic pull request.
Variables ¶
This section is empty.
Functions ¶
func ProjectedRoot ¶
ProjectedRoot is Root with the summaries projection present. A real store is copied into b.TempDir and write-opened there, which backfills the copy; the original is never written. Synthetic stores are projected by construction (Put maintains the projection), so for them both benchmark variants measure the projected path; the fallback is measured only on a real copy.
Types ¶
This section is empty.