Updates to compile-benchmark
Per Nordlöw
per.nordlow at gmail.com
Wed Oct 7 17:53:30 UTC 2026
On Wednesday, 7 October 2026 at 16:37:44 UTC, Per Nordlöw wrote:
> A larger set of new features has been added since 29 September.
Regarding the recent improvements to DMD, an important case is
`LD_PRELOAD=/usr/lib/libmimalloc.so ./benchmark
--languages=D:dmd,Zig,Rust,Odin,C++`
outputting
```
# Benchmark:
Running benchmarks in parallel across 8 CPU core(s) (1 worker per
core)...
### Tier 2: Modern Systems Languages (Ahead-of-Time)
*Full type inference, monomorphization/generics, semantic safety,
module systems.*
*Cells with two values: untemplated, templated (`-` = not
available).*
```
| Language (Exec) | Total (Build + Run) [us/f]
| Check [us/f] | Compile [us/f] | Check RSS [kB/f] |
Build RSS [kB/f] | Output Size [B/f] |
| :-------------------------------: |
:------------------------------------: | :----------: |
:------------: | :--------------: | :--------------: |
:---------------: |
| C++ (clang++ 23.1.1) | 85.3 (85.1+0.16), 117.7
(117.7+0.07) | 17.3, 30.6 | 79.6, 98.6 | 3.6, 6.0
| 10.1, 13.2 | 151.1, 155.1 |
| C++ (g++ 16.2.1) | 249.0 (248.9+0.06), 312.4
(312.4+0.04) | 31.3, 75.1 | 394.8, 314.1 | 7.6, 11.4 |
18.1, 21.8 | 126.1, 130.1 |
| C++ (g++-15 15.3.0) | 228.5 (228.5+0.05), 263.8
(263.8+0.04) | 26.7, 68.1 | 228.5, 276.6 | 7.0, 10.5 |
17.4, 21.7 | 126.1, 130.1 |
| D (dmd 2.113.0-fe13b6a) | 13.5 (13.5+0.04), 20.9
(20.9+0.04) | 4.8, 9.9 | 10.9, 17.7 | 4.8, 11.9
| 16.8, 23.7 | 178.5, 194.5 |
| Odin (odin dev-2026-09:a2fb372b7) | 90.4 (90.3+0.10), 106.2
(106.2+0.04) | 20.4, 29.2 | N/A | 20.5, 32.0
| 40.6, 51.5 | 112.6, 132.6 |
| Rust (rustc 1.100.0-nightly) | 177.9 (177.8+0.17), 189.3
(189.3+0.09) | 88.5, 114.1 | N/A | 16.2, 17.5 |
32.0, 30.1 | 360.4, 300.3 |
| Zig (zig 0.18.0-dev.35+5e754304d) | 87.2 (87.1+0.10), 93.9
(93.8+0.10) | 22.1, 24.5 | 86.2, 90.0 | 4.5, 5.4
| 9.6, 12.8 | 1503.4, 1422.5 |
on my AMD Ryzen 7 AI 350.
More information about the Digitalmars-d-announce
mailing list