I have spent some time generating Rust code with frontier (and cheaper) LLMs. This sometimes has unpredictable results—which LLM is capable of the job? I found that different models generate vastly different code on the same prompt.
I built an objectively-scored benchmark called DotNetPerlsBench. Basically each model is told to generate a Rust code file; this code is then placed in a benchmark harness. Memory usage and execution time in a benchmark is measured. Runtime is 75% of the score, and memory usage the remaining 25%.
The code is a Rust struct that implements a trie data structure. The model is free to use any optimizations, and it is told about the scoring metrics. I found that currently 3 models can get the highest score—Claude Opus 5.5, Gemini 4 Neon, and Qwen 4 Max. It is my hope that as open-weight models progress, they can reach the highest score. I currently believe that the current highest score may be as high as possible given the constraints.