Compile Times on Windows

zebrazebra via Digitalmars-d digitalmars-d at puremagic.com
Sat May 9 09:47:14 PDT 2015


On Saturday, 9 May 2015 at 10:54:11 UTC, Walter Bright wrote:
> On 5/9/2015 3:44 AM, Dave Akers wrote:
>> Or an anti-virus program interfearing?
>
> I had to disable Windows' built in antivirus because it is an 
> anathema to a program that creates .exe files.

With antivirus (windows defender) disabled, compile times go down 
to ~1.7 seconds.


On Saturday, 9 May 2015 at 16:04:55 UTC, Andrei Alexandrescu 
wrote:
> So from the shape of the cmdline I infer this is the 32 bit 
> compiler running under cygwin? These two elements might 
> influence speed. -- Andrei

Running under whatever bash emulation layer git comes with. 32 
bit compiler I guess so from dmd --version. Is there a 64 bit 
compiler available for Windows? This is what I get after 
installing the d exe.

[Sat May 09 09:38:10 zebra at ZEBRA:/c/D ]
$ find /c/D/ -type f -name "dmd.exe"
/c/D/dmd2/windows/bin/dmd.exe

For some comparison - here are some other timings (the gcc ex. is 
w/ antivirus disabled).

[Sat May 09 09:39:14 ashwin at ZEBRA:~/personal/d ]
$ time gcc hello.c -o hello

real    0m0.366s
user    0m0.016s
sys     0m0.031s

[Sat May 09 09:39:26 zebra at ZEBRA:~/personal/d ]
$ time javac Hello.java && java Hello

real    0m2.049s
user    0m0.031s
sys     0m0.015s

[Sat May 09 09:43:34 zebra at ZEBRA:~/personal/d ]
$ time date
Sat May  9 09:45:48 PDT 2015

real    0m0.169s
user    0m0.015s
sys     0m0.062s






More information about the Digitalmars-d mailing list