Test script:
#!/bin/bash bd=/dev/mmcblk0p6 mp=/media/big fgrep -q $bd /etc/mtab && umount $bd mkfs.ext4 -q -m1 $bd mount -o noatime,nodiratime,discard $bd $mp #mkfs.btrfs $bd #mount -o noatime,nodiratime,discard,ssd,compress=zlib $bd $mp cd $mp cp ~/Downloads/r16.tar.gz ./ echo "Unzip test" time tar -xzf r16.tar.gz echo "Del test" time rm -rf ac100-marvin24s-kernel
Simplified user version without formatting:
#!/bin/bash wget -c "http://ge.tt/api/1/files/2KJjguO/0/blob?download" -O r16.tar.gz echo "Unzip test" time tar -xzf r16.tar.gz echo "Del test" time rm -rf ac100-marvin24s-kernel
Results:
Unzip test real 2m14.023s user 0m27.990s sys 0m19.360s Del test real 1m10.995s user 0m0.320s sys 0m9.750s
Unzip test real 1m42.091s user 0m37.550s sys 0m24.060s Del test real 0m8.791s user 0m0.350s sys 0m5.580s
Unzip test real 1m50.623s user 0m30.640s sys 0m26.480s Del test real 0m11.551s user 0m0.100s sys 0m10.810s