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

Per Nordlöw per.nordlow at gmail.com
Wed Aug 26 23:07:28 UTC 2020


On Wednesday, 26 August 2020 at 22:27:39 UTC, Per Nordlöw wrote:
> On Wednesday, 26 August 2020 at 22:22:52 UTC, Per Nordlöw wrote:
>> I've updated the docs aswell at
>> https://github.com/nordlow/compiler-benchmark
>
> I've haven't updated the benchmarks yet, though.

Here's at least numbers for

./benchmark --languages=D,Vox --function-count=200 
--function-depth=450 --run-count=1

outputted in Markdown-table format:

| Lang-uage | Oper-ation | Temp-lated | Time [us/#fn] | Slowdown 
vs [Best] | Version | Exec |
| :---: | :---: | --- | :---: | :---: | :---: | :---: |
| D | Check | No | 6.9 | 1.0 [D] | v2.093.1-697-g537aa8eb1 | 
`dmd` |
| D | Check | No | 7.5 | 1.1 [D] | 1.23.0 | `ldmd2` |
| D | Check | Yes | 17.4 | 2.5 [D] | v2.093.1-697-g537aa8eb1 | 
`dmd` |
| D | Check | Yes | 18.8 | 2.7 [D] | 1.23.0 | `ldmd2` |
| D | Build | No | 16.8 | 2.4 [Vox] | v2.093.1-697-g537aa8eb1 | 
`dmd` |
| D | Build | No | 192.8 | 27.3 [Vox] | 1.23.0 | `ldmd2` |
| D | Build | Yes | 29.7 | 4.2 [Vox] | v2.093.1-697-g537aa8eb1 | 
`dmd` |
| D | Build | Yes | 211.0 | 29.9 [Vox] | 1.23.0 | `ldmd2` |
| Vox | Build | No | 7.1 | 1.0 [Vox] | master | `vox` |
| Vox | Build | Yes | 7.9 | 1.1 [Vox] | master | `vox` |

vox build equals dmd check in speed!

I guess it's time to start running the binary aswell to see if 
there are any speed differences.


More information about the Digitalmars-d mailing list