Elementary OS团队的成员Shnatsel发布了关于自由Linux压缩工具的测试对比。下面是压缩和解压缩的数据(其中发现的一些问题,该同学已经写了脚本,可下载安装)。
压缩:解压:如果你想亲自尝试了这一点,下载这里的脚本代码: 压缩 | 减压 for testnum in $(seq 1 256); do
testnum=$(expr $testnum "*" 10)
for archiver in bzip2 lzma xz gzip lzip lzop lrzip; do
dd if=/dev/zero of=$testnum.zero bs="$testnum""k" count=1
c=$(date +%s%N)
$archiver $testnum.zero
d=$(date +%s%N)
total=$(echo $d-$c | bc)
echo $total >> $archiver
rm $testnum.zero *.bz2 *.lzma *.gz *.xz *.lzo *.lz *.lrz
done
done
gnuplot <(echo "set terminal svg;set ylabel "Time (nanoseconds)" textcolor lt 1; set xlabel "Size (tens of kilobytes)" textcolor lt 2;plot "lzma" with lines, "xz" with lines, "gzip" with lines, "lzip" with lines, "lzop" with lines, "lrzip" with lines, "bzip2" with lines") > test.svg
rm gzip lrzip lzip lzma lzop xz bzip2===========================================================for testnum in $(seq 0 256); do
testnum=$(expr $testnum "*" 10)
for archiver in bzip2 lzma xz gzip lzip lzop lrzip; do
dd if=/dev/zero of=$testnum.zero bs="$testnum""k" count=1
$archiver $testnum.zero
rm $testnum.zero
c=$(date +%s%N)
$archiver -d $testnum.zero.*
d=$(date +%s%N)
total=$(echo $d-$c | bc)
echo $total >> $archiver
rm $testnum.zero *.bz2 *.lzma *.gz *.xz *.lzo *.lz *.lrz
done
done
gnuplot <(echo "set terminal svg;set ylabel "Time (nanoseconds)" textcolor lt 1; set xlabel "Size (tens of kilobytes)" textcolor lt 2;plot "lzma" with lines, "xz" with lines, "gzip" with lines, "lzip" with lines, "lzop" with lines, "lrzip" with lines, "bzip2" with lines") > test.svg
rm gzip lrzip lzip lzma lzop xz bzip2此外,如果您要使用上面的脚本,确保安装了所有所需的软件包: sudo apt-get install gnuplot bzip2 lzma xz-utils gzip lzip lzop lrzip Cool Dock for Gnome shell: Unity 2D Launcher调整Ubuntu Unity 快捷启动栏的大小相关资讯 Elementary OS
- Elementary OS 0.4 loki稳定正式版 (今 10:09)
- Elementary OS Loki(0.4) Beta 已 (06月20日)
- Elementary OS 美到你不能呼吸 (12/13/2015 19:57:35)
| - elementary OS 0.4 Beta 2 发布下 (07月21日)
- Daniel Fore专访:Linux发行版 (03月08日)
- elementary OS 0.3.2 发布下载,基 (12/10/2015 19:22:56)
|
本文评论 查看全部评论 (0)