Comment by Scuds
6 months ago
I have a mac m4 pro and it's 2 minutes to compile all of Deno, which is my go-to for bigass rust projects.
```
> cargo clean && time cargo build
cargo build 713.80s user 91.57s system 706% cpu 1:53.97 total
> cargo clean && time cargo build --release
cargo build --release 1619.53s user 142.65s system 354% cpu 8:17.05 total
```
this is without incremental compilation. And it's not like you have to babysit a release build if you have a CI/CD system
Interesting, M1 Max took 6 minutes and M1 Air took 11 minutes according to this article:
https://corrode.dev/blog/tips-for-faster-rust-compile-times/...
Oh yes, apple hardware continues to improve and M4 pro still the single threaded champion of anything under 300 w.
FWIW - last stage where the binary is produced takes the longest and is single threaded and that's the largest difference between release and debug.
Sounds suspicious to me.
At a quick glance, most benchmarks show only 50% to 60% single threaded improvement between M1 and M4.
That wouldn't explain compilation times going from 6 minutes to 2 minutes.