Skip to content

docs(bench): the 16 KiB shrink batch holds on two more workloads - #433

Merged
mrnasil merged 1 commit into
mainfrom
docs/batch-threshold-validation
Nov 7, 2026
Merged

mrnasil merged 1 commit into
mainfrom
docs/batch-threshold-validation

Conversation

@mrnasil

@mrnasil mrnasil commented Nov 7, 2026

Copy link
Copy Markdown
Member

Validates the threshold chosen in #431 against overfitting to one session. Two more workloads (bash-heavy and small reads) were captured, replayed from every-step to never, and checked on a v0.6.35 build. On all three workloads 16 KiB cuts cache cost 21–23% against shrinking every step, and it is the cheapest policy or within 5% of it. Never shrinking ends the bash-heavy session at a 163k-token request. The actual builds match the replays to 0.1%. Docs only.

🤖 Generated with Claude Code

Bash-heavy and small-read sessions, replayed from every-step to never
and checked on a v0.6.35 build: 21-23% lower cache cost than shrinking
every step on all three workloads, cheapest or within 5% of it, without
the context growth of never shrinking.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mrnasil
mrnasil merged commit 2f9c504 into main Nov 7, 2026
7 checks passed
@mrnasil
mrnasil deleted the docs/batch-threshold-validation branch November 7, 2026 17:52
@mrnasil mrnasil mentioned this pull request Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant