Skip to content

Stop tuning when benchmark is deemed slow enough - #429

Open
KristofferC wants to merge 1 commit into
mainfrom
kc/tune-slow-shortcircuit
Open

Stop tuning when benchmark is deemed slow enough#429
KristofferC wants to merge 1 commit into
mainfrom
kc/tune-slow-shortcircuit

Conversation

@KristofferC

@KristofferC KristofferC commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Trying to deal with tuning taking a silly long time for some functions (it took like 5s to tune a ~10us function to decide it should run with 3 evals and then the actual benchmark finishes very quickly) This seems like one obvious way to speed it up:

🤖 :

lineartrial normally tests every evaluation count from 1 through
RESOLUTION. This makes tuning unnecessarily expensive for slow
benchmarks, even though they will use one evaluation per sample.

Once three samples all take longer than RESOLUTION, further samples
cannot change the result from guessevals. Stop the trial at that point
while preserving the existing behavior for faster benchmarks.

`lineartrial` normally tests every evaluation count from 1 through
`RESOLUTION`. This makes tuning unnecessarily expensive for slow
benchmarks, even though they will use one evaluation per sample.

Once three samples all take longer than `RESOLUTION`, further samples
cannot change the result from `guessevals`. Stop the trial at that point
while preserving the existing behavior for faster benchmarks.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@KristofferC KristofferC changed the title Stop the tuning ramp early for benchmarks slower than RESOLUTION Stop tuning when benchmark is deemed slow enough Jul 29, 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