Repository navigation
hyperdu 2.0 is a drop-in du. Run it as du, gdu or hyperdu du for GNU or BSD compatible output, on average 1.35x faster than GNU du. The explorer's flags and size accounting now match du, which changes some existing behavior. See Breaking changes before upgrading scripts.
Highlights
dudrop-in mode. Symlink the Native AOT binary asduorgdu, or runhyperdu du. Supports the GNU dialect (Linux, andgdueverywhere) and the BSD/macOS dialect (duon macOS). Force one withHYPERDU_DU_DIALECT=gnu|bsd. Linux and macOS archives include theduandgdusymlinks.- Faster than GNU
du. A parallel engine with ordered streaming output: 2.4x on 250,000 files, 1.35x geometric mean across 64 benchmark scenarios, with output matchingduin all of them. - Windows backend. Scans with
NtQueryDirectoryFilein both the explorer anddumode. - Accurate disk usage in the explorer. Sizes count allocated blocks and count hard-linked files once, the same way
dudoes.
Breaking changes
Explorer flags now follow du
| v1.x flag | v2.0 flag | What happens if you keep using the old flag |
|---|---|---|
-t <N> (threads) |
-j <N> / --threads <N> |
-t now means --threshold <SIZE>. -t 8 runs without error but hides entries under 8 bytes instead of setting 8 threads. |
-v |
-V / --version |
Exits with status 1 and a migration message. |
-e <path> |
--exclude=<PATTERN> / -X <FILE> |
Exits with status 1 and a migration message. Exclusions are now du-style globs that match files and directories. |
-h |
--help |
-h now means --human-readable. |
Sizes are disk usage, not file length
v1.x added up apparent file sizes. v2.0 counts allocated disk blocks and counts hard-linked files once, so totals can differ from v1.x for sparse, compressed or hard-linked files. To get the old behavior:
--apparent-sizecounts apparent sizes again.-l/--count-linkscounts each hard link.
New explorer options
--apparent-size, -b, -h, --si, -t, -l, -x, -L, --exclude, -X. Run hyperdu --help for details.
Install
- WinGet:
winget upgrade JaretVarn.hyperdu(once the winget-pkgs PR for 2.0.0 is merged and published) - .NET tool:
dotnet tool update -g hyperdu(explorer andhyperdu duonly, not adusymlink target) - Binaries: Native AOT builds for Linux, macOS and Windows are attached below. Check them against
SHA256SUMS.
What's changed
- Add automated du parity and ecosystem benchmarking framework (#30)
- Build the du compatibility test harness (#31)
- du persona MVP on a sequential walker (#32)
- du traversal semantics (#33)
- du time and locale formatting (#34)
- Parallel du engine with ordered streaming output (#35)
- Package hyperdu as a du drop-in (#36)
- Align explorer native accounting with allocated blocks, dedupe and openat (#41)
- Align explorer CLI flags and exclusions with du (#42)
- BSD/macOS du persona and macOS CI compatibility harness (#43)
- Windows NtQueryDirectoryFile backend for the explorer and Windows du (#44)
- Benchmark fairness, precision and score reporting (#45)
- Remove O(D^2) deep-chain and startup overhead in du and the native scanner (#46)
- Fixes and code quality: ignored closedir/close results (#26), Sonar cleanups (#25, #27, #28), CI quality reporting (#47)
- Docs: README rewrite and screenshots (#23), README trim and benchmark summary (#48)
Full Changelog: v1.2.0...v2.0.0