This repo aims to prove that something is wrong with APFS on macOS, but is also a good stress test in general when changing machine tooling that wants to oberve fs events (such as security tooling / EDR / virus scanners / etc).
Steps:
- Setup
- Gather Results
- Report / PR with your Results ❤️
have node @ >= 22.11
have pnpm @ >= 10.2
(if you have proto (with auto-install) or volta installed, these versions will be selected for you)
git clone git@github.com:NullVoxPopuli/disk-perf-git-and-pnpm.git
cd disk-perf-git-and-pnpm
pnpm install # Fill the cache so we don't hit the network during testingSince you've installed all the dependencies already, we can start with the clean test:
time ( git clean -Xfd; git clean -fd )Windows Powershell:
(Measure-Command { git clean -Xfd; git clean -fd }).ToString()And then once that finishes, we can run the install test:
time ( pnpm install )Windows Powershell:
(Measure-Command { pnpm install }).ToString()If using zsh
your time will be total.
0.01s user 0.00s system 94% cpu 0.007 total
#. ^ this numberand round to the tenths decimal place
if using bash
your time will be real.
real 2.02s # this number
user 0.00s
sys 0.01sand round to the tenths decimal place
| CPU | RAM (GB) | Clean (s) | Install (s) | Date | FileSystem & Disk | OS |
|---|---|---|---|---|---|---|
| AMD Ryzen 5 7640U 12 Core | 92 | 6.8 | 5.9 | 2025-02-07 | Ext4 : WD Black SN850 500GB | Ubuntu 24.04.1 |
| AMD Ryzen 9 7900X 12/24 Core | 64 | 6.0 | 4.3 | 2025-02-07 | Ext4 : Samsung SSD 980 Pro 2TB | Ubuntu 24.04.1 |
| Apple M1 Pro | 16 | 42.2 | 44.0 | 2025-02-09 | APFS (Encrypted) : APPLE SSD AP0512R 500GB | macOS 15.3 |
| Apple M1 Max | 64 | 31.5 | 44.2 | 2025-02-08 | APFS (Encrypted) : APPLE SSD AP1024R 1TB | macOS 14.7.3 |
| Apple M4 | 16 | 29.6 | 31.4 | 2025-02-08 | APFS (Encrypted) : APPLE SSD AP1024Z 1TB | |
| AMD Ryzen 7 7800X3D 8 Core | 32 | 17.1 | 16.1 | 2025-02-09 | Ext4 : Corsair MP600 PRO LPX | Ubuntu 22.04.3 |
| AMD Ryzen 7 7800X3D 8 Core | 32 | 65.5 | 42.3 | 2025-02-09 | NTFS : Corsair MP600 PRO LPX | Windows 10 Pro 22H2 |
| AMD Ryzen 5 7800X3D 8 Core | 64 | 69.5 | 73.3 | 2025-02-09 | NTFS : WD Black SN850x 2TB | Windows 11 Pro 23H2 |