Benchmarks
Every language needs a benchmarks page. Ours measures the things the compiler can actually do today. Every number here was measured, and the methodology says how.
Compiler
Section titled “Compiler”All timings compile examples/hello.am,
a 16-line program with a class, a property, a constructor, string interpolation and a
main method. It’s one of the few programs the compiler can fully build so far.
| Benchmark | Median | Range |
|---|---|---|
am check hello.am (lex, parse, type check) |
74 ms | 73–78 ms |
am build hello.am (all of that, plus emitting IL) |
142 ms | 140–149 ms |
dotnet hello.dll (start, print Hi, Razz, exit) |
22 ms | 20–23 ms |
dotnet --version, for comparison |
96 ms | 87–109 ms |
Amethyst’s hello world starts, greets you and exits faster than the .NET SDK can tell you its own version number. We don’t know what to do with this information either.
| Output | Size |
|---|---|
hello.dll |
2,560 bytes |
hello.runtimeconfig.json |
141 bytes |
Test suite
Section titled “Test suite”| Measurement | Result |
|---|---|
| Compiler tests | 186 passed, 0 failed |
| Runtime tests | 13 passed, 0 failed |
Tests for Amethyst.Test, the test framework |
0 |
dotnet test, wall-clock time |
1.8 s (median of 5) |
Nobody tests the testers.
Language
Section titled “Language”| Measurement | Result |
|---|---|
| Lines of language reference | 3,775, in 20 files |
| Words of language reference | 14,072 |
| Lines of compiler (F#) | 4,370 |
| Lines of language reference per line of compiler | 0.86 |
| Error codes the compiler can report | 26 |
Sections marked [TBD] |
4 headings, 9 markers in total |
| Joke asides in the language reference | 26 |
Times the word end appears in the language reference |
222 |
For every 168 lines of compiler, there’s one joke in the spec. We’re told this is about industry standard.
Developer experience
Section titled “Developer experience”| Measurement | Result |
|---|---|
Time from am new to a working project |
Not applicable: am has three commands, check, build and run, and new isn’t one of them |
Time from writing user.name on a User? to finding out it might be nil |
One am check: 74 ms, rather than one production incident |
Time to your first NoMethodError |
Never. Calling a method that doesn’t exist is a compile error, unless you opt in |
Methodology
Section titled “Methodology”- Date: 4 December 2026
- Machine: AMD Ryzen 7 5700X (8 cores, 16 threads), Linux 6.18 under WSL2
- .NET SDK: 10.0.404
- Compiler build:
Amethyst.Compiler.Clibuilt in Release configuration and run directly, not throughdotnet run, so the timings don’t include an MSBuild up-to-date check. - Timings: wall-clock time for the whole process, measured with Python’s
time.perf_counter. One warm-up run was discarded, followed by 15 timed runs; the table shows the median, minimum and maximum.dotnet testwas run 5 times afterdotnet build, with--no-build. - Line counts:
wc -loversrc/Amethyst.Compiler/**/*.fsandsite/src/content/docs/reference/*.md, including blank lines and comments. - Error codes: the distinct codes defined in the compiler’s four error modules (lexer, parser, type checker and emitter).
[TBD]and asides: occurrences of[TBD]and of:::tipin the reference files.end: occurrences ofendas a whole word in the reference files, in code and prose alike.
Your results will vary. Ours will too, as soon as the compiler does more.