Hacker News new | ask | show | jobs
by InvaderFizz 1865 days ago
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.
2 comments

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.