Hacker News new | ask | show | jobs
by tobyhinloopen 1865 days ago
How long does it take on a Ryzen 9 5950X
2 comments

Note that's a 16 core CPU with 105W TDP compared to a quad core < 10W M1
5850U is an 8 core CPU with a TDP that is adjustable between 10-25w. If you want to keep it to 4 cores just so it is a fair fight, there's the 5400U/5450U. AMD does pretty well...
Yeah I'd say the M1 and latest AMD CPUs are virtually tied for fastest single threaded performance, edging out the best by Intel.

But for something like compilation which is multithreaded obviously the higher core count will win.

Yup, and the new macbook pro will probably be twice as fast
Source?
Gut feeling ;-)
Ran a few cycles on my 5950x hackintosh:

  invaderfizz@FIZZ-5950X:~$ hyperfine 'cargo -q install -f ripgrep'
  Benchmark #1: cargo -q install -f ripgrep
    Time (mean ± σ):     19.190 s ±  0.392 s    [User: 294.890 s, System: 17.144 s]
    Range (min … max):   18.352 s … 19.803 s    10 runs
The CPU was averaging about 50% load, the dependencies go really fast when they can all parallel compile, but then the larger portions are stuck with single-thread performance.
My 5950X came in faster running in WSL2, but then I do have a Samsung 980 PRO running in a PCIe 4.0 slot.

  Benchmark #1: cargo -q install -f ripgrep
    Time (mean ± σ):     11.585 s ±  0.474 s    [User: 176.733 s, System: 5.677 s]
    Range (min … max):   11.271 s … 12.867 s    10 runs
Which I suspect leans towards an IO bottleneck.
Just for reference (5950x too): ran 3 times just measuring with `time` on void linux using cargo from xbps. Mean of the last two runs (first was syncing and downloading) was ~13.8 s.