Results and Scoring
Files of a run
Each run is stored in results/MODEL/YYYYMMDD-HHMMSS/ (change the base folder with --out):
| File | Content |
|---|---|
report.md | Final score, scores by category, language and task, secondary metrics and failed tests |
results.json | Settings, sessions and one record per answer |
answers/TASK_runK.md | Prompt, reasoning and answer |
answers/TASK_runK.EXT | Code extracted from the answer |
results.json also records the machine, toolchains, model path and, for a local server, the command that started it. Values of options named like keys, tokens or passwords are masked. Check these files before sharing them.
Compare models
python3 codebench.py --compare # latest complete run of each model
python3 codebench.py --compare-all # every stored run
Both write comparison.md and a self-contained comparison.html to the results folder (add --out if you changed it). The report ranks the models, shows cut-off answers and the score per task, and ends with the model files, server settings and benchmark options. It warns when results come from different versions or tasks. A run that misses any task or run (--only, --skip-missing, an interruption) is marked (incomplete), and its Runs column shows how many runs have an answer for every task (4/10); --compare shows it only when the model has no complete run.
How the score works
- A task score is the weight of the tests passed divided by the total weight.
- The final score is the plain mean over all tasks, from 0 to 100.
- With several runs, the report shows the mean and the standard deviation.
- A failed request scores 0 until it is asked again.
How tests are run
- Programs read standard input and write standard output, which is compared with the expected output.
- C and C++ correctness tests run on a sanitizer build, so memory errors fail the test.
- Timed tests have their own limits, multiplied by
--time-scale, plus a start-up allowance per language. - After three simple tests time out, the remaining simple tests of that answer are not run.
Report columns
| Column | Meaning |
|---|---|
| Solved | Tasks the model got completely right in every run |
| Builds | Answers that compiled, or were accepted by the interpreter; it does not mean the code is correct |
| Avg tokens | Mean tokens generated per answer, cut-off ones included |
| Cut off | Answers not completed: length (token cap), wall-limit (time cap) or loop |