The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
The target was a 19mb MP3 file, by Iron Maiden. Very good. 192kbps. I ran it through all the compression formats I had, and here are the results. All filesizes in bytes.
18536 foo.tar
18528 foo.mp3
18384 foo.tar.gz
18384 foo.zip
18364 foo.rar
18328 foo.bz2
18328 foo.tar.bz2
So, tar actually made it bigger, tar.bzip2 and bzip2 produced the same sizes, rar came second, followed by zip and the famous gzip.
The quickest was tar, followed by gzip, then zip, bzip2 and finally rar, which took for-bloody-ever. However, both zip and bzip2 took fair amounts of time each.
Tar doesn't even claim to be a compression algorithm. It isn't meant to be.
It was originally designed to turn a series of files into one file, in a way that could be easily extracted. That's why Tar and Gzip are two seperate steps to create a "Tarball" or .tar.gz/.tgz.
The main use of creating these files was backup. You can dd a .tar to a tape device easily, but piping loads of individual files is more hassle.. and getting them back as individual files is even worse. Remember, a tape device is just a long string of 8-bit ascii.
And of course Tar is going to increase the filesize -- there's a header involved, and no compression. And of course huffman compression is hardly going to touch it.. it's an MP3 :)
The target was a 19mb MP3 file, by Iron Maiden. Very good. 192kbps. I ran it through all the compression formats I had, and here are the results. All filesizes in bytes.
18536 foo.tar
18528 foo.mp3
18384 foo.tar.gz
18384 foo.zip
18364 foo.rar
18328 foo.bz2
18328 foo.tar.bz2
So, tar actually made it bigger, tar.bzip2 and bzip2 produced the same sizes, rar came second, followed by zip and the famous gzip.
The quickest was tar, followed by gzip, then zip, bzip2 and finally rar, which took for-bloody-ever. However, both zip and bzip2 took fair amounts of time each.