mager-bench

v1.0 // personal coding-model benchmark

Five tasks I actually care about, scored by an LLM judge on correctness, code quality, and documentation. A benchmark models have to earn.

Claude Haiku 4.5
7.6
/ 10 average score
avg latency
9440ms
challenges
5
judge
claude-sonnet-5
last run
Mon, 13 Jul 2026 15:27:45 UTC

leaderboard

#modelavg scoreavg latency
01Claude Haiku 4.57.69440ms

more models land here as they get run — see the CLI.

Claude Haiku 4.5 — challenge breakdown

Baseline correctness + code style

correctness 10.0quality 9.0documentation 10.06454ms TOP SCORE

# Correct, clean, idiomatic implementation with thorough docstring, examples, and even added input validation beyond requirements.

Pure documentation ability — no code at all

correctness 9.0quality 9.0documentation 9.012085ms

# Comprehensive, well-organized README covering all required sections with accurate flag documentation, clear examples, and proper Markdown/code-block formatting, though it invents extra details (hashing, exit codes) not specified in the prompt.'

Code clarity + whether the model can explain its changes

correctness 10.0quality 8.0documentation 8.04445ms

# Correct and clean refactor with meaningful names and idiomatic comprehension, but keeping 'x' as a loop variable is a minor quality lapse and the explanation table, while accurate, is fairly generic/boilerplate rather than deeply specific.

Algorithm + full docstring (Args/Returns/Raises + examples)

correctness 8.0quality 6.5documentation 9.013145ms

# Correct binary search logic and good edge-case handling, but the added `sorted(arr)` validation each call turns the algorithm into O(n log n), contradicting the claimed O(log n) efficiency and undermining the point of binary search; documentation is thorough and examples are accurate.

Class design + error handling + type hints + docs

correctness 1.0quality 3.0documentation 4.011073ms LOW SCORE

# Response is cut off mid-implementation (post method incomplete, no usage example at bottom), making the code non-functional despite good structure and docstrings up to that point.

api

$ curl /api/results → 200 OK

Same data behind this page, as JSON. Cached 1h at the edge.