Repository navigation
Simplify and rank benchmarks - #9
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR streamlines Codexometer’s benchmark UX by unifying the benchmark catalog (removing the Core/Extended suite split) and adding an overall per-model/per-effort ranking system with adjustable cost/time weighting, alongside associated documentation and a minor version bump.
Changes:
- Consolidates benchmarks into a single 7-challenge catalog and removes suite state/toggle, renaming the destructive full-catalog action to Run All.
- Adds an overall
RANKcolumn plus rank-weight controls (Cost/Balanced/Speed) with awhotkey, and makes rank sortable in the result matrix. - Updates README benchmark docs (difficulty table + ranking algorithm details) and bumps the maintained version to
0.5.0.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| README.md | Updates keybindings, unified benchmark catalog docs, difficulty table, and ranking algorithm documentation; bumps documented version to v0.5.0. |
| main_test.go | Updates --version output expectation to v0.5.0. |
| internal/version/version.go | Bumps maintained fallback version to 0.5.0. |
| internal/version/version_test.go | Updates fallback version test to 0.5.0. |
| internal/ui/model.go | Removes suite state/hotkey, adds rank mode state and w cycling hotkey, and wires rank buttons into footer actions. |
| internal/ui/benchmark.go | Removes suite selector UI, anchors selector width to longest task name, adds rank column + ranking computation + rank sorting + rank-weight controls. |
| internal/ui/benchmark_test.go | Updates benchmark UI tests for unified catalog/run-all behavior, anchored selector, and new ranking/rank-weight behavior. |
| internal/codex/benchmark.go | Renames extended step-limit constant to hard step-limit naming. |
| internal/codex/benchmark_tasks.go | Removes suite metadata from tasks; compacts task names; unifies catalog; renames step-budget renew helper. |
| internal/codex/benchmark_extended_tasks.go | Updates hard-task verifiers to use the renamed hard step-budget renew helper. |
| internal/codex/benchmark_extended_tasks_test.go | Renames “Extended” verifier tests to “Hard” and updates catalog/name expectations. |
Suppressed comments (1)
internal/ui/benchmark.go:563
sortedBenchmarkResultsalways computesbenchmarkRankings(results)even when a precomputed rankings map is supplied and/or when the active sort column doesn’t use rank. This adds avoidable O(n log n) work to every render/sort and is especially noticeable as the result matrix grows.
rankings := benchmarkRankings(results)
if len(suppliedRankings) > 0 {
rankings = suppliedRankings[0]
}
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
What changed
uhotkey, suite state, suite metadata, and difficulty suffixes from terminal task namesRANKcolumn for each model/reasoning-effort combinationwcycling hotkey; changing them recomputes existing ranks immediately0.4.0to0.5.0Ranking
Ranking aggregates every completed result row for a model/reasoning-effort combination. More passes dominate, followed by fewer failures. Within each identical pass/failure tier, Codexometer independently ranks total API-equivalent cost and total wall time, then combines the two ordinal ranks at 75/25 for Cost mode, 50/50 for Balanced, or 25/75 for Speed. This tier isolation prevents a failing combination from changing the efficiency trade-off between fully correct peers. Token usage remains visible but no longer affects rank. Missing or invalid cost receives the last cost-axis rank in its correctness tier rather than appearing artificially cheap; exact weighted-score ties share a rank, and ranks are provisional while results are still arriving.
The README now specifies the grouping key, aggregation and validation rules, competition ranking, exact formulas (
3C + T,C + T, andC + 3T), final correctness-first comparison, missing-cost consequences, token independence, and provisional in-progress behavior.Why
The suite split consumed control space and added selection state without changing how an individual challenge was evaluated. A single catalog makes challenge navigation and full runs easier to understand. Compact terminal names reclaim room for ranking, while difficulty remains available where its meaning can be properly explained.
The anchored selector prevents the arrow controls and their mouse hit targets from shifting when task-name lengths differ.
Validation
go test ./...go test -race -cover ./...go vet ./...codexometer v0.5.0