压缩比及压缩速度测试:
$ head -n 2000 cc_detail_201608.sql > 1
$ time tar -c –lzma -f 1.glz 1
real 23m44.216s
$ time tar -c –xz -f 1.gxz 1
real 25m26.296s
$ time tar -czf 1.tgz 1
real 1m17.476s
$ time tar -cjf 1.tbz 1
real 6m56.272s
$ time zip -r 1.zip 1
real 1m13.239s
$ du -lh 1*
Size name time rate
1.9G 1
120M 1.glz(23m44.216s – 16.21)
120M 1.gxz(25m26.296s – 16.21)
135M 1.tbz(6m56.272s – 14.41)
237M 1.tgz(1m17.476s – 8.21)
237M 1.zip(1m13.239s – 8.21)
作者:醇雾
来源:CSDN
原文:https://blog.csdn.net/wuchunlai_2012/article/details/52598870
版权声明:本文为博主原创文章,转载请附上博文链接!