Linux/Compression tools: Difference between revisions
< Linux
Line 2: | Line 2: | ||
* Compressing 6144MB kvm image | * Compressing 6144MB kvm image | ||
{| class="wikitable" border="1" | {| class="wikitable sortable" border="1" | ||
|- | |- | ||
! Command | ! Command |
Revision as of 11:32, 18 November 2012
benchmark
- Compressing 6144MB kvm image
Command | Arguments | compressed size | time |
---|---|---|---|
cat | > target | 6144M | 55.96s |
pigz | --best | 1526M | 259.65s |
pigz | --fast | 1667M | 28.06s |
- benchmark script
#!/bin/bash COMPRESSCMD="pigz -9" DESC="pigz-best" START=$(date +%s.%N) cat image.img | $COMPRESSCMD > /backup/$DESC.img.gz END=$(date +%s.%N) DIFF=$(echo "$END - $START" | bc) echo "$DIFF" > /backup/$DESC.log