issue454bench

command
v0.55.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL