With a file that's only one line: `import std.uni;`, it takes 4x longer to compile with -unittest than not. The reason is that `needsCodegen` always (in essence, in practice it's slightly more complicated) returns true when -unittest is passed even for non-root modules, and importing Phobos means generating code for all of them.
Fixed by https://github.com/dlang/dmd/pull/13224