Documentation
¶
Overview ¶
Command issue454bench reproduces the downstream editor measurements from issue #454 on synthetic single-language fixtures.
It generates a repetitive source of the requested size, then either times a fresh full parse or applies one single-byte edit (replace, insert, or delete) at the first near-top identifier and reports the incremental parse profile against a fresh parse of the edited bytes.
Usage:
go run ./cmd/issue454bench <lang> <sizeKB> <mode> [reps]
The Make report fixture also accepts broken, broken-mid, broken-last, and half-typed modes. sizeKB accepts decimals such as 3.5.
Set ISSUE454_CPUPROFILE=<path> to write a CPU profile of the measured parses.
Click to show internal directories.
Click to hide internal directories.