KitzKikz  KitzKikz: FileCompressionTest   RecentChanges 
 PopularPages 
 SearchPages 
 Home | Trail - FileCompressionTest
 
 

For my own twisted interest, I ran a few unix file compression methods on 25,000 concatenated copies of the Declaration of Independence (html version, 13,641 bytes).

MethodBytesTimeRatio
Uncompressed:341,025,000-0.000%
compress:90,666,2813m39.374s73.414%
bzip2:?> 1 hour?
zip:2,378,3801m51.983s99.303%
gzip:2,378,3131m43.769s99.303%


How to create a file containing 25,000 copies of the Declaration of Independence

    curl http://earlyamerica.com/earlyamerica/freedom/doi/text.html > f
    cat f f f f f f f f f f > fd
    cat fd fd fd fd fd fd fd fd fd fd > fh
    cat fh fh fh fh fh fh fh fh fh fh > fk
    cat fk fk fk fk fk fk fk fk fk fk > f10k
    cat f10k f10k fk fk fk fk fk > doi25k
    rm f fd fh fk f10k

There's probably a nice easy way to do it with perl or some such, but this was easy enough.

 

   

 
 EditThisPage · LinksToPage · PageInfo 06/11/05 05:00:18  ·  0.0383s