5 ms·
I did that. When I bought our first M1 Mac, it was faster in multi-core Rust builds than my Ryzen 3700X workstation. I have since upgraded to an M1 Pro and a Ry
by microtonal 5y ago
I did that. When I bought our first M1 Mac, it was faster in multi-core Rust builds than my Ryzen 3700X workstation. I have since upgraded to an M1 Pro and a Ryzen 5900X. The 5900X is faster (12 cores vs. 8 performance cores and 2 efficiency cores), but not by much. For example, building one of my Rust projects:
M1 Pro:
~ % cargo install --force finalfrontier
[...]
Finished release [optimized] target(s) in 16.25s
5900X:
~ % cargo install --force finalfrontier
[...]
Finished release [optimized] target(s) in 11.61s
If we count the two efficiency cores as being as powerful as a single performance core, the performance, the per-core performance is on-par ((9/12.) * 16.25 = 12.1875).
In other tasks, the M1 Pro blows the Ryzen 5900 away. For example, the M1 Pro reaches 2685 GFLOP/s in matrix multiplication, while the Ryzen 5900X peaks at 1555 GFLOP/s [1].
Oh and all of that while the Ryzen CPU alone consumes 120W during builds and needs a big loud fan (Noctua), while the MacBook Pro is inaudible and runs on battery. The MacBook I can throw in my backpack and use everywhere. The best computer is the one that's with you.
(And no, mobile Ryzen doesn't even come close. I had a ThinkPad with a high-end Ryzen CPU last year, and builds where much slower than even the vanilla M1.)
[1] https://github.com/danieldk/gemm-benchmark#1-to-16-threads https://github.com/danieldk/gemm-benchmark#1-to-16-threads