100 lines
3.3 KiB
Markdown
100 lines
3.3 KiB
Markdown
# System benchmark report
|
||
|
||
**Label:** `ryzen9-3900x-rtx3080` (example)
|
||
**Date:** 2026-08-02
|
||
**Suite:** `scripts/suite.sh`
|
||
**Focus:** nixos-rebuild, Rust/cargo, Go compile speed
|
||
**Stated preference (example):** wait for next AMD desktop gen + post–5070 Ti
|
||
|
||
Numbers come from the suite. The interpretation block is an **opinion layer** in
|
||
`report/data.typ` (`narrative`) — regenerate or clear for other machines
|
||
(COOKBOOK.md).
|
||
|
||
## Interpretation (compile-centric)
|
||
|
||
**Keep for nix / Rust / Go — waiting on platform still coherent.**
|
||
|
||
The 3900X still scales on parallel builds (gcc 96 TU ≈ **15.7×** vs serial). Go
|
||
is already fast. Soft limits: **32 GiB RAM**, nix **eval** IPC, and AM4
|
||
end-of-life — not the GPU. A midrange GPU buy does nothing for rebuild times.
|
||
If rebuilds hurt *daily*, prefer more RAM and/or faster `/nix` storage before a
|
||
full CPU platform jump.
|
||
|
||
## Hardware
|
||
|
||
| | |
|
||
|--|--|
|
||
| CPU | Ryzen 9 3900X · 12C/24T · Zen 2 |
|
||
| Board | MSI MPG X570 GAMING PLUS |
|
||
| RAM | 32 GiB |
|
||
| GPU | RTX 3080 10 GB (driver 595) |
|
||
| Root | 970 PRO · LUKS + ext4 (**nix store here**) |
|
||
| Games | SN850X 1 TB |
|
||
|
||
## Suite results
|
||
|
||
Sample: `examples/ryzen9-3900x-rtx3080/summary.json` · re-run with `./scripts/suite.sh`.
|
||
|
||
### Baseline
|
||
|
||
| Metric | Result |
|
||
|--------|--------|
|
||
| sysbench CPU multi / single | **8766** / **747** eps |
|
||
| 7-Zip total | **78 607** MIPS |
|
||
| mem read / write (sysbench ST) | **8024** / **6724** MiB/s |
|
||
| fio seq read / write (root) | **2207** / **1934** MiB/s |
|
||
|
||
### Compile-oriented
|
||
|
||
| Metric | Result | Maps to |
|
||
|--------|--------|---------|
|
||
| `go build std` cold / warm (CGO=0) | **5.98 s** / **0.18 s** | Go compile / cache |
|
||
| cargo release cold | **9.94 s** | Rust clean-ish |
|
||
| cargo release full recompile | **10.17 s** | Rust full rebuild |
|
||
| cargo incremental (touch main) | **0.70 s** | edit/rebuild loop |
|
||
| gcc 96× `-O2 -c` serial / parallel | **4.53 s** / **0.29 s** (**15.7×**) | nix-style many-TU |
|
||
| nix eval foldl 500k | **0.115 s** | eval IPC |
|
||
| nix eval genList 2000 | **0.023 s** | eval micro |
|
||
|
||
## Workload reading
|
||
|
||
### nixos-rebuild
|
||
|
||
1. **Eval** — mostly single-thread → IPC/clock bound.
|
||
2. **Build many derivations** — multi-thread C/C++/Rust → core count matters (suite parallel gcc efficiency).
|
||
3. **Store I/O** — root LUKS fio on this run is healthy; not the first bottleneck unless closures are huge.
|
||
|
||
### Rust / cargo
|
||
|
||
Parallel crate compiles use the threads. Pain points are usually LLVM/single-thread slices, linking, and **RAM** with high `-j` + LTO.
|
||
|
||
### Go
|
||
|
||
Already quick here. Upgrading **for Go alone** is hard to justify.
|
||
|
||
## Market snapshot (PassMark-style, 2026-08-02)
|
||
|
||
- 3900X CPU Mark ≈ **31 881** → ~**48%** of 9950X multi
|
||
- RTX 3080 ≈ **78%** of 5070 Ti G3D — moot for compile speed
|
||
|
||
## Paths forward
|
||
|
||
**Default (matches gen-wait preference):** keep platform; don’t buy a GPU generation for rebuilds. Revisit CPU on a full board+RAM+DDR5 jump when you care about the next desktop gen.
|
||
|
||
**If rebuilds are the daily pain now:**
|
||
|
||
1. More RAM (e.g. 64 GiB).
|
||
2. Optional: faster/dedicated `/nix`.
|
||
3. Software: `mold`/`lld`, shared cargo target, tuned nix `max-jobs`/`cores`.
|
||
4. Only then a CPU/platform swap.
|
||
|
||
## Reproduce
|
||
|
||
```bash
|
||
nix develop
|
||
./scripts/suite.sh
|
||
# update report/data.typ (suite + optional narrative)
|
||
make report
|
||
```
|
||
|
||
See `COOKBOOK.md`, `AGENTS.md`.
|