When compiling contracts that have many dependencies, or a large batch of contracts, the compilation times increase significantly when compared to using the resolc binary to compile. In my case, compiling 514 contracts takes ~41 secs with the binary vs ~8 mins with the wasm.
cc: @smiasojed