{"slug": "introducing-dotnetperlsbench", "title": "Introducing DotNetPerlsBench", "summary": "A developer built DotNetPerlsBench, an objectively scored benchmark that has each LLM generate a Rust file implementing a trie data structure, then measures execution time (75% of the score) and memory usage (25%) in a harness. Three models reach the highest score: Claude Opus 5.5, Gemini 4 Neon, and Qwen 4 Max. The author says results vary widely across models on the same prompt and hopes open-weight models will eventually match the top score.", "body_md": "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.\n\nI 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%.\n\nThe **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.", "url": "https://wpnews.pro/news/introducing-dotnetperlsbench", "canonical_source": "https://www.dotnetperls.com/2026_12_4_introducing-dotnetperlsbench", "published_at": "2026-12-04 07:00:00+00:00", "updated_at": "2026-12-04 15:45:53.483606+00:00", "lang": "en", "topics": ["ai-research", "large-language-models", "ai-tools", "developer-tools"], "entities": ["DotNetPerlsBench", "Rust", "Claude Opus 5.5", "Gemini 4 Neon", "Qwen 4 Max"], "also_reported_by": [], "takeaway": "Scoring generated Rust on a trie implementation with runtime weighted 75% and memory 25% separates models: only Claude Opus 5.5, Gemini 4 Neon and Qwen 4 Max hit the top score.", "recommendation": {"advice": "Score LLM-generated code by running it in a harness, weighting runtime 75% and memory 25%, rather than judging output by inspection alone.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/introducing-dotnetperlsbench", "markdown": "https://wpnews.pro/news/introducing-dotnetperlsbench.md", "text": "https://wpnews.pro/news/introducing-dotnetperlsbench.txt", "jsonld": "https://wpnews.pro/news/introducing-dotnetperlsbench.jsonld"}}