It does compress slightly faster and better than lz4 (when the output is written to disk on a SSD) using the default parameters:
For an input text file alpha.txt whose size is 3.3GB:
- fastlz compresses in 1m6.446s (real time)
$ time ./6pack ~/Desktop/alpha/alpha.txt /tmp/out.fastlz
alpha.txt
[##################################################] 43.4% saved
real 1m6.446s
user 0m26.482s
sys 0m8.346s
- lz4 compresses in 1m15.681s (real time)
$ time ./LZ4Demo.exe ~/Desktop/alpha/alpha.txt /tmp/out.lz4
*** Compression CLI using LZ4 algorithm , by Yann Collet (Jul 25 2012) ***
Compressed 3590403790 bytes into 2418583396 bytes ==> 67.36%
Done in 35.99 s ==> 95.13 MB/s
real 1m15.681s
user 0m23.081s
sys 0m12.927s
For an input text file alpha.txt whose size is 3.3GB:
- fastlz compresses in 1m6.446s (real time)
- lz4 compresses in 1m15.681s (real time) Here is the size of the output: lz4 is here: http://code.google.com/p/lz4 alpha.txt was generated as advertised on this website: http://leon.bottou.org/projects/sgdBoth projects were compiled from the trunk on a 2009 MacBook Pro running OSX 10.6 with gcc i686-apple-darwin10-gcc-4.2.1.
I will now make some room on my SSD to time uncompress.
Edit: I rerun the previous compression and the results are pretty stable: +/- 2s