# Mac mini M4 pro vs AMD Ryzen 9 9950X for Linear Algebra?

**URL:** https://discourse.julialang.org/t/mac-mini-m4-pro-vs-amd-ryzen-9-9950x-for-linear-algebra/122029
**Category:** Offtopic
**Tags:** question, recommendations, hardware
**Created:** [October 31, 2024, 6:53am UTC](https://discourse.julialang.org/t/mac-mini-m4-pro-vs-amd-ryzen-9-9950x-for-linear-algebra/122029 "2024-10-31T06:53:29Z")
**Posts on this page:** 1
**Showing post:** 20

<div class="post-metadata">

### Author: ![Norman](https://avatars.discourse-cdn.com/v4/letter/n/97f17d/32.png) [@Norman](https://discourse.julialang.org/u/Norman)
#### Post date: [November 10, 2024, 5:57am UTC](https://discourse.julialang.org/t/mac-mini-m4-pro-vs-amd-ryzen-9-9950x-for-linear-algebra/122029/20 "2024-11-10T05:57:50Z")

</div>

Here is an update for anyone who comes into this thread by chance. I ended up with the 9950X and built an Ubuntu PC with it. I am happy with it so far as a “personal server” staying behind SSH and wired to a switch. With a decent CPU cooler, it stays silent when staying idle and only makes some noise when running something like `y-cruncher` that pushes the CPU to the maximum load.

Some quick benchmark following the post [here](https://discourse.julialang.org/t/poor-openblas-performance-for-large-matrix-multiply/119354/4):

```julia
julia> versioninfo()
Julia Version 1.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 32 × AMD Ryzen 9 9950X 16-Core Processor
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, generic)
Threads: 16 default, 0 interactive, 8 GC (on 32 virtual cores)
Environment:
  JULIA_NUM_THREADS = 16

julia> using LinearAlgebra

julia> N=449*10*2;

julia> A = rand(N,N); B = rand(N,N); C = similar(A);

julia> 2e-9N^3 / @elapsed mul!(C,A,B)
# First Run 1268.744956058828

julia> 2e-9N^3 / @elapsed mul!(C,A,B)
1736.538226330524

julia> 2e-9N^3 / @elapsed mul!(C,A,B)
1729.8860585152077

```

Ignoring the very first run affected by compile time, I got 1.7 TFLOPS, which is much better than the 0.35 TFLOPS I got on my current laptop.

Additional info for the PC build:

- Default settings for CPU without tweaking anything in BIOS
- Corsair DDR5 RAM 96GB running at 6000MHz via XMP profile and 1:1 ratio with controller
- Ubuntu 24.10

---

_[View the full topic](https://discourse.julialang.org/t/mac-mini-m4-pro-vs-amd-ryzen-9-9950x-for-linear-algebra/122029)._
