dragon-lang / dc

D Compiler
Boost Software License 1.0
8 stars 0 forks source link

Switch to rund, saves almost a second on first invocation of build.d #45

Closed marler8997 closed 5 years ago

marler8997 commented 5 years ago
$ rm -rf /tmp/.rdmd-*/
$ time rdmd --build-only ./src/build.d

real    0m3.245s
user    0m2.763s
sys 0m0.487s
$ rm -rf /tmp/.rund-*/
$ time rund --build-only ./src/build.d

real    0m2.416s
user    0m2.070s
sys 0m0.346s
wilzbach commented 5 years ago

You are still using the Makefile on Travis.

marler8997 commented 5 years ago

Ok, travis is now using build.d

wilzbach commented 5 years ago

It's tested on CircleCi at upstream DMD for a few months now. However, it doesn't fully support Windows yet (though neither does the Makefile).

marler8997 commented 5 years ago

Look like using rund saved about half a second when running ./src/build.d on travis. 7 seconds with rdmd, 6.5 seconds with rund, though, most of that time is actually spent building the compiler rather than build.d.

Also, it looks like the Makefile was a bit slower too, about half a second slower than build.d with rdmd, so about a full second slower than build.d with rund.

wilzbach commented 5 years ago

These numbers could also be influenced by how busy the Travis machine is.

Also, there shouldn't be a noticable difference between dmd -run build.d and rund, except rund does some dark magic.