Roedy said:
Useful stuff. Thanks.
In view of the preceding discussion, please consider adding similar
decompression figures. If nothing else, it would be very interesting
indeed to compare the compression/decompression times each utility.
I don't think I'm too surprised that Windows takes longer to copy the
file than zip does to compress it. This is true of any OS on a system
with a fairly quick CPU and a fast compression algorithm. Straight copy
does two disk operations per sector while writing a compressed archive
only does 1.3 to 1.5 disk operations for each sector read.
This also means that, if JAR unpack is optimized, class loading from JAR
files could be faster than from .class files.
I've not seen recent benchmarks, but historically Windows i/o has never
had the world's quickest i/o, primarily because it never used to overlap
peripheral i/o with anything else, i.e. there is no overlap between
devices or with moving the data between the i/o system and the
application. Any OS using this approach will have significantly faster
i/o times with compressed files simply because disk transfers are minimized.