Best compressor for archiving Delphi code

Today I ran a test to see which is the best way to compress Delphi projects for backup/archive purposes.

The contestants are Zip, WinRAR (v7.01) and 7Zip (v24.08).

I expected WinRar to be the winner in all cases (as usual) but for plain text files (PAS), the results were surprising. 7Zip won!

TEXT COMPRESSION

 Original size: 14,986,000 bytes

CompressorSize (bytes)Time (sec)
7 Zip 2,288,0004
Zip5,967,000 25
Rar 5,802,0003

BINARY COMPRESSION

7 Zip won also when compressing DocX files (which are binary files):

Original size: 61,211,000 bytes

CompressorSize after compression (bytes)Time (sec)
7 Zip48,646,0008
Zip59,671,0005
WinRar59,698,00018


It is true that 7Zip is not as polished as WinRar. Actually its GUI is quite crappy. But hey! WinRar costs money, while 7Zip is free. The only thing that is holding me from switching to 7Zip is that it is made in Russia.

Leave a Comment

Scroll to Top