Monday, 3 December 2012

compression - size vs speed

This is a small comparison of compression algorithms for the JVM:
  • gzip of course, I tested both java's implementation and the one included in Linux (through System.exec)
  • bzip2, the more heavy-weight player
  • deflate, the algoithm used by zip
  • pk200, a seemingly java-specific algorithm
  • xz, the algorithm behind 7zip

Random input

Text input