Skip to content

Mitts 0.3.9

Choose a tag to compare

@alex09x alex09x released this 27 Oct 12:41
· 464 commits to main since this release

Mitts 0.3.9 closes the third review round of the benchmark methodology.

Diagnostics

  • MITTS_NO_REFLINK=1 copies bytes. The flag exists to measure what a real copy costs, but its fallback was std::fs::copy, which clones on APFS (fclonefileat) and on XFS with reflink (the kernel turns copy_file_range into a clone). The benchmark's copy arm therefore wrote nothing on either filesystem and matched the reflink arm; only ext4 copied. With the flag set the bytes now go through a user-space read/write loop. The ordinary fallback, where cloning is the point, keeps std::fs::copy. Measured on ripgrep over XFS: copy 0.066 s and +408 MB written against reflink 0.017 s and nothing written.

Benchmark harness

  • The T4 copy-on-write ablation settles the filesystem before each disk-usage and device-write sample, as the T2 cold-build samples already did, so the reflink arm no longer reports a negative delta.
  • docs/benchmarks-execution-plan.md records which series compared what in T4 (≤ 0.3.6 reflink against a read-only store hardlink, 0.3.7 and 0.3.8 reflink against a kernel clone on APFS and XFS) and that bytes_hardlinked also counts intra-workspace aliases.

Checked

Full isolated suite green on Linux and macOS, clippy clean. The 0.3.7 and 0.3.8 series on both machines are in the repository's benchmark results; the review thread covers them.

Install or update:

cargo install mitts --version 0.3.9 --locked

Full history: v0.3.8...v0.3.9