Repository navigation
bench(tokens): add a dev workload (edit loop, rustc build, wide search) - #467
Merged
Merged
Conversation
The basic two-turn script has no edit call, no compiler output and no wide search, which are most of a real session. `--workload dev` runs three turns: write a 320-line scratch file, read it, edit it twice, run a build that prints 120 rustc-style warning blocks and an error, grep and glob widely, read a range, then edit and rebuild. Edits only touch scratch files; the build output is a scratch log the command cats. The default workload is unchanged (116,840 total input on main). dev on main: 248,340 total input, 36,046 uncached. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
scripts/bench_tokens.pyonly had a two-turn read/grep/write/test script. It has noeditcall, no compiler output and no wide search, which make up most of a real session, so the next token costs were invisible.--workload dev(three turns):editit twice, run a build that prints 120 rustc-style warning blocks (distinct names and files, lint note on the first only) and one error;grep "fn "acrosscrates/tools/src/file,glob crates/**/*.rs, read a 120-line range;editagain and rebuild.Edits only touch
.whycodes/scratch/; the build output is a scratch log the commandcats (no shell quoting), removed afterwards.--workload basicstays the default and gives the same numbers as before (116,840 on main).On main (release, Windows, o200k): 248,340 total input, 36,046 uncached. First findings it surfaced, for follow-up PRs:
CONTRIBUTING.md/CODE_OF_CONDUCTchunks (score 0.53) for a code-location question.🤖 Generated with Claude Code