# Can Benchmarks Boost Language Development?

If you look at a benchmark as a tool instead of a contest, it can be very handy.

Below I'll talk about two benchmarks, my own [BreakBench](https://danpozmanter.github.io/BreakBench/) (built with the aim of improving Gossamer's stability/correctness), and [LangArena](https://github.com/kostya/LangArena) (which compares execution speed, compilation speed, RAM usage, and expressiveness).

[Gossamer](https://gossamer-lang.org/) ([Github](https://github.com/gossamer-lang/gossamer)) aims to be:

- Trustworthy (Stable, Secure, Correct)
- Ergonomic (Concise, Expressive, Understandable)
- Performant (Fast, Efficient, Scalable)

I built [BreakBench](https://danpozmanter.github.io/BreakBench/) with **heavy** LLM assistance (and a surprising amount of research) to look for signal on how to improve Gossamer in the realm of bug prevention.

[Rust](https://rust-lang.org/) was an obvious inspiration for Gossamer, and Gossamer was designed day 0 with the idea that extending it in Rust would be feasible (over time this has gotten a lot smoother). One of the things I love the most about Rust is the feeling that "if it compiles, it will run". How close could I push Gossamer in that realm? Could I learn from other languages making interesting choices here, such as Swift, Haskell, F#, or Zig?

**Absolutely.**

# BreakBench and Correct Programs

![](https://cdn.hashnode.com/uploads/covers/61ee32fec99aed184e725fac/ef620c19-4fca-4d35-95d2-44c5fc6e1ee9.png align="center")

I made a bench (and have been refining it) to see how languages handle classic bugs - including when (or if) they prevent it, if they warn, and how runtime behavior changes. It scores based on correct runs, compiler stops, warnings, and runtime errors as positive indications of correctness enforcement. I made the choice to not count problems a language cannot express against it, which slightly raises a more constrained language like Goose, PHP, or Mojo higher than they might otherwise be. But it didn't feel fair to dock a language points for not having a feature (sometimes by maturity, sometimes by design).

I chose languages already in [LangArena](https://github.com/kostya/LangArena) as a base, and added some languages I thought would give good signal, like OCaml, Clojure, and Haskell.

Running my most recent iteration on the most recent pre-bench Gossamer, it shows up just behind Rust's 84.8% at 84.2%. Swift is in third at 76.2%.\
\
The top 3 did not change with my recent work pulling Gossamer ahead of Rust to 94.2%. Practically this means that I closed some gaps, made some silent failures refuse to compile, offer a runtime error, or emit a warning. It was also a good tool to push myself to re-evaluate what ought to go into stdlib, and shift behavior (user observable API, and compiler/interpreter internals).

Good signal comes from fair tests, so I earnestly tried to make the bench broad enough and useful enough to find real gaps worth closing or at least being aware of - I didn't close all the gaps I found. I researched famous bugs and had my mildly skill-empowered Claude apply them across the languages I looked at.

Any other language developer(s) could use this benchmark (or one like it) to push their languages closer to correctness. The benchmark is an interesting and useful tool - but the technique is the thing.

I wouldn't say this means Gossamer is definitely even in the same realm as Rust for correctness and safety in production - it's too narrow a test. But it does suggest there is compelling evidence worth looking at here.

# LangArena and Performance

Gossamer's evolution within [LangArena](https://kostya.github.io/LangArena/#/history_tab/lang/gossamer) has been great to watch. It's climbed the ranks whenever I focused a release on memory efficiency, or execution speed. I achieved this partly by studying the languages that did well (in particular newcomer Goose) to see if there were any worthwhile lessons I could apply to my own language, or tackling known tech debt. But the most useful has been taking a poor result, stepping back, asking what the root cause was, and following that trail to the end to see if there was an underlying fix. Often it was a dead end - but sometimes I'd find a bug or a bad design decision that could be changed without changing the character and goals of Gossamer.\
\
Note: Results are close enough to differ when run on different machines - even between different runs on the same machine. On my local desktop, Gossamer beats Rust for runtime and ranks 2nd overall. This doesn't mean it **is** second, only that close results for performance benchmarks can shift depending on hardware, OS, system noise, and other factors. The main factor seems to be differences in machines (and perhaps CPU build target).

Official run with Gossamer 0.85.0:

![](https://cdn.hashnode.com/uploads/covers/61ee32fec99aed184e725fac/68156789-667b-4d74-9d8b-a043a761bbda.png align="center")

Local run with Gossamer 0.86.2:

![](https://cdn.hashnode.com/uploads/covers/61ee32fec99aed184e725fac/f8385380-8325-46a5-afa0-843f1ff0802a.png align="center")

Right now Gossamer sits in a competitive spot for performance, close to the system languages on RAM (a step behind), at the top for compile time, and very near the top (scoring quite close to Scala) for expressiveness. This combination of fast compilation speed, concise/expressive code, and fast/lean performance puts it in a very interesting position. Check out the [pareto graphs](https://kostya.github.io/LangArena/#/top_tab/pareto_rt_expr). To me this suggests I'm heading in a promising direction.

# Conclusion

Benchmarks can help find problems worth solving, and they can also be a great check against future regression. If you're working on a language of your own - whatever the goal - consider using benchmarks to help find opportunities, bugs, and other shortcomings worth addressing.

I come away from this with an increased motivation to keep pushing, growing, and using Gossamer.

*Note: Gossamer was built to be human-first, but very AI friendly. A built in* [*MCP*](https://modelcontextprotocol.io/docs/2026-07-28/getting-started/intro) *server,* [*SKILL.md*](https://github.com/gossamer-lang/gossamer/blob/main/SKILL.md)*, and high emphasis on correctness means it is a language an LLM can use well without any training. That was surely a contributing factor in the quality of the code written by Claude/Opus or any other harness/model.*

Gossamer is able to balance a compelling mix of correctness, performance, and ergonomics. With a large standard library that rivals Go's and Python's, a solid focus on correctness and stability without a borrow checker - it's worth a look and an experimental project. Build something [efficient and useful](https://github.com/danpozmanter/waftty).
