Reputation: 281
I tried to look for any benchmark, more info for PHP LZ4 compression, but I can not find much info.
I saw https://github.com/kjdev/php-ext-lz4 - but I am missing benchmark, specially:
I am storing a lot of data as serialised (igbinary), I am using gzcompress() for now, wondering, if I should switch to lz4.
Thanks
Upvotes: 1
Views: 999
Reputation: 2049
You could try to have a look at these data: http://catchchallenger.first-world.info//wiki/Quick_Benchmark:_Gzip_vs_Bzip2_vs_LZMA_vs_XZ_vs_LZ4_vs_LZO
Should be quite helpful for your decision.
On the other hand, IMHO there's no disadvantage of using LZ4, it might just be not as widespread as gzlib, but if you are using it only on your server, this shouldn't be problematic.
Upvotes: 2