Skip to content

CLAUDE.md: say when to use alternating benchmark runs - #14

Merged
cldellow merged 1 commit into
masterfrom
claude-md-nocache
Nov 21, 2026
Merged

cldellow merged 1 commit into
masterfrom
claude-md-nocache

Conversation

@cldellow

Copy link
Copy Markdown
Owner

Change

Replaces "use --no-cache only for close calls" in CLAUDE.md with a number: use alternating runs when the expected difference is under about 25%.

Why

bench/compare.py caches the baseline's timings, so later comparisons time only the candidate. On the test VM, separately timed runs drifted by up to about 20%. Comparing the all-changes branch with the cached baseline, the 11 benchmark queries looked 31% faster in total; with alternating runs (--no-cache, 7 runs per build) the same comparison measured 12%. The cache is still right for large differences: the prompting queries in #12 differ by 25–200×.

Documentation only.


Generated by Claude Code

Separately timed runs on the test VM drifted by up to about 20%: a
cached-baseline comparison showed the benchmark queries 31% faster where
alternating runs measured 12%. Give a number for "close calls".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01736kJUqyDw9zM3Bkh2W2QT
@cldellow cldellow added the query-perf Query performance change; collected on all-changes label Nov 21, 2026 — with Claude
@cldellow
cldellow merged commit 403a4c6 into master Nov 21, 2026
@cldellow cldellow added the docs Documentation only, e.g. CLAUDE.md label Nov 21, 2026 — with Claude
@cldellow cldellow removed the query-perf Query performance change; collected on all-changes label Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation only, e.g. CLAUDE.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants