Is there any language that native-compiles faster than D?
per.nordlow at gmail.com
Wed Aug 26 22:21:46 UTC 2020
On Wednesday, 26 August 2020 at 20:10:09 UTC, MrSmith wrote:
> ldc2 -d-version=cli -m64 -O3 -release -boundscheck=off
> -enable-inlining -flto=full -i main.d -of=./tjc
I built that binary on my system and called it `vox`.
It is indeed fast; about 2.5x faster than dmd
| Lang-uage | Oper-ation | Temp-lated | Time [us/#fn] | Slowdown
vs [Best] | Version | Exec |
| :---: | :---: | --- | :---: | :---: | :---: | :---: |
| D | Build | No | 16.4 | 2.4 [Vox] | v2.093.1-697-g537aa8eb1 |
| D | Build | No | 188.1 | 27.6 [Vox] | 1.23.0 | `ldmd2` |
| D | Build | Yes | 30.8 | 4.5 [Vox] | v2.093.1-697-g537aa8eb1 |
| D | Build | Yes | 204.2 | 29.9 [Vox] | 1.23.0 | `ldmd2` |
| Vox | Build | No | 6.8 | 1.0 [Vox] | master | `vox` |
I've added support for untemplated Vox language to
compiler-benchmark if `vox` is found in the path. I'll add the
templated version now.
More information about the Digitalmars-d