Got it. Generally speaking, expect dx to also be relatively slow as it needs to call into the directx compiler, though I can't comment on how that would compare with the slowness you saw on mac/gl (that could have come from a hard-to-digest bug workaround ANGLE applies, or your shader might have hit a pathologically slow path in the driver, or just generally low quality of mac/gl drivers. That said, the directx compiler is not known to be particularly good either).
I wouldn't worry about the Vulkan backend though, compilation there should be an order of magnitude faster than the other backends.