dmd -run speed trends

Siarhei Siamashka siarhei.siamashka at gmail.com
Sun Dec 17 08:17:18 UTC 2023


On Sunday, 17 December 2023 at 06:59:58 UTC, Witold Baryluk wrote:
> On Saturday, 16 December 2023 at 23:35:12 UTC, Siarhei 
> Siamashka wrote:
>> | echo " " >> bench.go && time go run bench.go               | 
>> 0.15s  |  0.13s |
>>
>
>
> This is not a correct test for go. You should remove all cached 
> artifacts in `${HOME}/go` too.

This properly simulates real usage (fast edit + compile + run 
cycles). Whereas removing all cached artifacts in `${HOME}/go` 
does not simulate real usage.

Running `touch` was not enough to prevent Nim from reusing the 
cached version. Appending a single space character to the source 
code on each test iteration resolved this problem.


More information about the Digitalmars-d mailing list