Comparison and testing of hdiff1.0 and bsdiff4.3 Author: HouSisong@GMail.com 3.03.06.06
Tag:Hdiffpatch, hdiff, diff, patch, bsdiff, patch
Test environment: System windows7-x64 CPU: i7 QM 2.3g memory: 6g ddr3 1600 MHz 7zip use lzma2Algorithm
(Hdiffpatch description andSource codeDownload: http://blog.csdn.net/housisong/article/details/9003013)
========================================================== ========================================================== ========================== Program uncompressed compressed BSDiff-4.3 HDiff-1.0-x64 hdiff newversion <-- oldversion (TAR) (Bzip2) (7z) -x64 + Bzip2 uncompressed + Bzip2 + 7z ready apache-maven-2.2.1-src <-- 2.0.11 5150720 1213258 1175464 115723 312852 105941 93996 22612480 httpd_2.4.4-netware-bin <-- 2.2.24 4035904 3459747 2192308 4154954 1961079 1765089 31809536 httpd-2.4.4-src <-- 2.2.24 4775534 4141266 2492534 4893630 2146854 1931397 Firefox-21.0-mac-en-US.app <-- 20.0 98740736 39731352 33027837 16454403 26000512 16017001 23.4 185528320 42044895 20emacs-24.3 <-- 33707445 12892536 25236398 11139071 178595840 156054144 cocoa-x86_64 <-- x86_32 151542885 1595465 1650702 1591549 552775680 1569777gcc-src-4.8.0 <-- 4.7.0 86438193 64532384 11759496 26538554 9961692 8668268 average Average Compression 100.00% 31.76% 28.47% 6.63% 12.21% 6.06% ==================== ========================================================== ========================================================== ========================================================== === program I/O + run time (s) run memory (MB) bsdiff hdiff ------------------------------------------------ APACHE-Maven... 2.1 0.5 42 29 httpd bin... 13.3 3.9 151 111 httpd SRC... 32.3 6.6 330 221firefox... 137 63 849 579emacs... 203 47 1466 1026eclipse... 253 108 1575 1051gcc-src... 678 111 4639 3119 ------------------------------------------------ 394.62% 145.47% ======================== ====================
Hdiff is smaller than the diff data generated by bsdiff (generally smaller than 10%), faster (generally only 1/4 of the time), and smaller memory usage (generally only 2/3 of the memory );