Not OP, but at compiling code (Rust). Some anecdata:
time cargo test
# old machine (2018 16" Macbook Pro 2.2 GHz 6-Core i7)
cargo test 2077.73s user 221.03s system 596% cpu 6:25.67
total
# linux dev machine (AMD Ryzen 5 3550H - 4-Core 2.1Ghz, using mold linker)
real 4m48.771s
user 25m0.121s
system 2m9.922s
# new machine (2023 14" Macbook Pro M2 Pro - 10 cores 6perf/4efficiency)
cargo test 389.91s user 39.56s system 478% cpu 1:29.66 total