1- <!-- spell-checker:ignore hyperfine tmpfs reflink fsxattr xattrs clonefile -->
1+ <!-- spell-checker:ignore hyperfine tmpfs reflink fsxattr xattrs clonefile vmtouch APFS pathlib Btrfs fallocate journaling -->
22
33# Benchmarking cp
44
@@ -30,10 +30,10 @@ being exercised so results can be interpreted correctly.
3030- Build a release binary first: ` cargo build --release -p uu_cp ` .
3131- Use ` hyperfine ` for timing and rely on the ` --prepare ` hook to reset state
3232between runs.
33- - Prefer running on a fast device (RAM disk, tmpfs, NVMe) to minimise raw
33+ - Prefer running on a fast device (RAM disk, tmpfs, NVMe) to minimize raw
3434storage latency when isolating the cost of the tool.
3535- On Linux, control the page cache where appropriate using tools like
36- ` vmtouch ` or ` echo 3 > /proc/sys/vm/drop_caches ` (root required). Prioritise
36+ ` vmtouch ` or ` echo 3 > /proc/sys/vm/drop_caches ` (root required). Prioritize
3737repeatability and stay within the policies of the host system.
3838- Keep the workload definition explicit. When comparing against GNU ` cp ` or
3939other implementations, ensure identical datasets and mount options.
@@ -56,7 +56,7 @@ hyperfine \
5656What to record:
5757
5858- Achieved throughput (MB/s) for large sequential copies.
59- - Behaviour with ` --reflink=auto ` or ` --sparse=auto ` on filesystems that
59+ - Behavior with ` --reflink=auto ` or ` --sparse=auto ` on filesystems that
6060support copy-on-write or sparse regions.
6161- CPU overhead when enabling attribute preservation such as
6262` --preserve=mode,timestamps,xattr ` .
@@ -93,7 +93,7 @@ What to record:
9393- Time spent in directory traversal and metadata replication.
9494- Impact of toggling options such as ` --preserve ` , ` --no-preserve ` , ` --link ` ,
9595` --hard-link ` , and ` --archive ` .
96- - Behaviour when symbolic links or hard links are present, especially with
96+ - Behavior when symbolic links or hard links are present, especially with
9797` --dereference ` versus ` --no-dereference ` .
9898
9999## Copy-on-write and sparse files
@@ -127,7 +127,7 @@ features are active.
127127` --backup=numbered ` ) to see the impact of extra file operations.
128128
129129Supplementary analysis with ` strace -c ` or ` perf record ` can show which system
130- calls dominate and guide optimisation work.
130+ calls dominate and guide optimization work.
131131
132132## Interpreting results
133133
0 commit comments