Thank you Ludwig for your reply, so:

On Thu, 17 Apr 2014 08:33:03 +0200, Sönke Ludwig wrote:

--------->8--------
Which version of DUB are you using?
--------->8--------

In previous post DUB version 0.9.22-Beta2+11-gd54b5c5
In this post DUB version 0.9.22-beta.2+14-g1189389
DMD64 D Compiler v2.065

--------->8--------
It would be interesting to see where exactly the time is spent during
the build. Can you try to roughly estimate from the console output how
much time is spent for the actual compilation, how much for
initialization and how much for linking?
--------->8--------

About 20% init, 5% compiling, 75% linking

--------->8--------
If compilation takes considerably longer than for --rdmd, that would
indicate that only a very small part of the code is actually used and
RDMD skips most files when passing them to DMD. But more importantly,
using --rdmd compiles the whole project at once instead of building
separate static libraries for the dependencies. You could also try to
use --combined and see how it compares, it should especially improve the
first run.
--------->8--------

New test with --combined and DUB version 0.9.22-beta.2+14:

|           | 1st  | 2nd   | test |
| --------- |------| ----- | ---- |
|dub        | 27s  | 11s   | 36s  |
|dub --rdmd |  8s  |  6s   | -    |
|dub --comb |  56s |  11s  | 1'16s|
|make       |  3s  |  0s   | 3.7s |