Last active
December 11, 2015 11:18
-
-
Save n0ts/4592346 to your computer and use it in GitHub Desktop.
lzo vs lz4 on OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test data log size: 87804961 bytes (about 84MB) | |
=== lzo === | |
$ brew install lzop | |
$ time lzop test_compress_log | |
lzop test_compress_log 0.25s user 0.05s system 90% cpu 0.340 total | |
$ ls -lb test_compress_log.lzo | |
-rw-r--r-- 1 n0ts wheel 61373672 Jan 22 14:31 test_compress_log.lzo | |
=== lz4 === | |
$ svn checkout http://lz4.googlecode.com/svn/trunk/ lz4-read-only | |
$ cd lz4-read-only | |
$ make | |
$ time./lz4-read-only/lz4demo.exe test_compress_log test_compress_log.lz4 | |
*** Compression CLI using LZ4 algorithm , by Yann Collet (Jan 22 2013) *** | |
Compressed 87804961 bytes into 57500041 bytes ==> 65.49% | |
Done in 0.36 s ==> 234.46 MB/s | |
./lz4-read-only/lz4demo.exe test_compress_log test_compress_log.lz4 0.23s user 0.13s system 62% cpu 0.574 total | |
$ ls -lb test_compress_log.lz4 | |
-rw-r--r-- 1 n0ts wheel 3379814 Jan 22 14:28 test_compress_log.lz4 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment