From now on use just 1.1.2 version as there were some bugs in 1.1.
The tests were done on a Xeon E3-1225v5, 8GB DDR4 with 1TB, 3TB and 6TB sata disks on Debian 11, Xubuntu 23.10 and Fedora 39. Some syncing tests with two disks happend to be on different filesystems. I don't know if that can impact performance in any visible way. I've used a small shell script that takes a text document with the list of files and directories to delete so to delete exacatly the same files and directories each time, and then ran both programs with the time command. I have restarted the OS inbetween each run, and did few runs with each program. The test directories were 596.67GB and 581.18GB in size, and I've used different levels of copy sizes. I've done more tests than what is show here and the only difference is that results fluctuate from 10-30 seconds. I've picked the best results that I received with each program. I will perform the tests with even bigger directories in the future. Also, suggestions for different/better types of benchmarks are welcome as I don't really have experience with this.
commands used:
cps -qgrw directory1 directory2
rsync -rl --ignore-existing --stats directory1/ directory2/
Xubuntu 23.10 (xfs filesystem)
Two directories on the same disk:
directory1: 581.29GB
Size of the data to copy: 11.90GB
Number of files to copy: 572
Number of directories to copy: 74
Code:
cps:
real 2m32,243s
user 0m4,093s
sys 0m20,384s
rsync:
real 2m43,732s
user 0m7,533s
sys 0m25,640s
Size of the data to copy: 50.51GB
Number of files to copy: 11175
Number of directories to copy: 589
Code:
cps:
real 14m35,204s
user 0m17,513s
sys 1m24,874s
rsync:
real 14m22,347s
user 0m32,287s
sys 1m51,335s
Size of the data to copy: 91.42GB
Number of files to copy: 13432
Number of directories to copy: 703
Code:
cps:
real 23m30,800s
user 0m31,796s
sys 2m30,802s
rsync:
real 23m16,686s
user 0m56,191s
sys 3m15,328s
Two directories on the different disks (second disk with the xfs filesystem):
Size of data to copy: 11.90GB
Number of files to copy: 572
Number of directories to copy: 74
Code:
cps:
real 2m32,243s
user 0m4,093s
sys 0m20,384s
rsync:
real 2m40,743s
user 0m7,577s
sys 0m25,922s
Size of the data to copy: 63.15GB
Number of files to copy: 12570
Number of directories to copy: 592
Code:
cps:
real 8m55,929s
user 0m21,644s
sys 1m26,772s
rsync:
real 9m0,735s
user 0m40,129s
sys 1m52,601s
Size of the data to copy: 91.42GB
Number of files to copy: 13432
Number of directories to copy: 703
Code:
cps:
real 12m10,194s
user 0m31,127s
sys 2m2,778s
rsync:
real 12m26,278s
user 0m58,397s
sys 2m40,277s
Debian 11 (ext4 filesystem)
Two directories on the same disk:
directory1: 591,18GB
Size of the data to copy: 12.53GB
Number of files to copy: 712
Number of directories to copy: 81
Code:
cps:
real 3m47.284s
user 0m5.292s
sys 0m24.453s
rsync:
real 4m0.605s
user 0m5.271s
sys 0m23.787s
Size of the data to copy: 63.51GB
Number of files to copy: 12638
Number of directories to copy: 598
Code:
cps:
real 20m59.690s
user 0m26.864s
sys 2m2.506s
rsync:
real 22m3.747s
user 0m58.654s
sys 2m48.546s
Size of the data to copy: 105.70GB
Number of files to copy: 13637
Number of directories to copy: 729
Code:
cps:
real 33m2.035s
user 0m43.929s
sys 3m17.635s
rsync:
real 32m7.915s
user 1m32.557s
sys 4m31.768s
Two directories on the different disks (second disk with the xfs filesystem):
Size of the data to copy: 63.51GB
Number of files to copy: 12638
Number of directories to copy: 598
Code:
cps:
real 10m12.624s
user 0m31.260s
sys 1m45.261s
rsync:
real 11m11.143s
user 0m57.825s
sys 2m16.927s
Size of the data to copy: 105.70GB
Number of files to copy: 13637
Number of directories to copy: 729
Code:
cps:
real 15m.762s
user 0m57.414s
sys 3m7.345s
rsync:
real 16m7.254s
user 1m31.635s
sys 3m39.779s
Fedora 39 (btrfs)
Two directories on the same disk:
directory1: 597.18GB
Size of the data to copy: 12.53GB
Number of files to copy: 712
Number of directories to copy: 81
Code:
cps:
real 3m21,448s
user 0m3,566s
sys 0m14,904s
rsync:
real 3m27,852s
user 0m7,215s
sys 0m17,114s
Size of the data to copy: 63.51GB
Number of files to copy: 12638
Number of directories to copy: 598
Code:
cps:
real 16m4,211s
user 0m17,393s
sys 1m9,931s
rsync:
real 17m32,169s
user 0m35,373s
sys 1m21,892s
Size of the data to copy: 105.70GB
Number of files to copy: 13637
Number of directories to copy: 729
Code:
cps:
real 25m25,975s
user 0m29,050s
sys 1m54,108s
rsync:
real 26m2,359s
user 0m57,765s
sys 2m16,175s
Two directories on the different disks (second disk with the xfs filesystem):
directory1: 597.18GB
Size of the data to copy: 12.53GB
Number of files to copy: 712
Number of directories to copy: 81
Code:
cps:
real 2m40,859s
user 0m3,700s
sys 0m14,996s
rsync:
real 3m31,256s
user 0m6,989s
sys 0m17,113s
Size of the data to copy: 63.51GB
Number of files to copy: 12638
Number of directories to copy: 598
Code:
cps:
real 13m29,253s
user 0m17,796s
sys 1m12,609s
rsync:
real 13m19,804s
user 0m36,075s
sys 1m24,027s
Size of the data to copy: 105.70GB
Number of files to copy: 13637
Number of directories to copy: 729
Code:
cps:
real 16m27,128s
user 0m29,237s
sys 1m59,896s
rsync:
real 15m54,411s
user 0m57,473s
sys 2m13,916s
Bookmarks