Is there any language that native-compiles faster than D?

Per Nordlöw per.nordlow at gmail.com
Sun Aug 23 00:18:44 UTC 2020


On Sunday, 23 August 2020 at 00:06:02 UTC, Per Nordlöw wrote:
> On Thursday, 20 August 2020 at 23:57:09 UTC, oddp wrote:
>> Same goes for good old ada. It has blazing fast compilation 
>> times in conjunction with gcc-gnat,
>
> Nope. I just added support for it in compiler-benchmark. It is 
> crazy slow:
>
>     ./benchmark --languages=D,Ada --function-count=20 
> --function-depth=450 --run-count=1
>
> gives
>
> | Lang-uage | Oper-ation | Temp-lated | Time [s/fn] | Slowdown 
> vs [Best] | Version | Exec |
> | :---: | :---: | --- | :---: | :---: | :---: | :---: |
> | D | Build | No | 0.150 | 1.0 [D] | v2.093.1-541-ge54c041a4 | 
> `dmd` |
> | Ada | Build | No | 9.031 | 60.2 [D] | 10.2.0 | `gnat-10` |

Correction, should be

| Lang-uage | Oper-ation | Temp-lated | Time [s/fn] | Slowdown vs 
[Best] | Version | Exec |
| :---: | :---: | --- | :---: | :---: | :---: | :---: |
| D | Build | No | 0.163 | 1.0 [D] | v2.093.1-541-ge54c041a4 | 
`dmd` |
| Ada | Build | No | 1.596 | 9.8 [D] | 10.2.0 | `gnat-10` |

Builds are 10x slower than D.


More information about the Digitalmars-d mailing list