File:Benchmark common compression formats - Compressing factor.svg
Original file (SVG file, nominally 600 × 480 pixels, file size: 9 KB)
Captions
Summary
[edit]DescriptionBenchmark common compression formats - Compressing factor.svg |
English: This is a comparison of popular compression formats by how well it compress a file. The horizontal scale shows number or paragraphs containing random lorem ipsum text |
Date | |
Source | Own work |
Author | AzaToth |
SVG development InfoField | |
Source code InfoField |
// Following script was used to make the plots. They where run on a mounted tmpfs dir:
#!/bin/bash
rm -f *.compress *.decompress *.factor
for testnum in $(seq 0 500 10000); do
lorem -p $testnum > data
for archiver in bzip2 lzma xz gzip lzip lzop lrzip; do
case $archiver in
bzip2)
suffix=bz2;;
lzma)
suffix=lzma;;
xz)
suffix=xz;;
gzip)
suffix=gz;;
lzip)
suffix=lz;;
lzop)
suffix=lzo;;
lrzip)
suffix=lrz;;
esac
cp data current-$testnum
s1=$(stat -c %s current-$testnum)
c=$(date +%s%N)
$archiver current-$testnum
d=$(date +%s%N)
total=$(echo $d-$c ┃ bc)
echo "$testnum $total" >> $archiver.compress
s2=$(stat -c %s current-$testnum.$suffix)
factor=$(echo "scale=10;$s1/$s2" ┃ bc)
echo "$testnum $factor" >> $archiver.factor
rm -f current-$testnum
c=$(date +%s%N)
$archiver -d current-$testnum.$suffix
d=$(date +%s%N)
total=$(echo $d-$c ┃ bc)
echo "$testnum $total" >> $archiver.decompress
rm -f current*
rm -f *.bz2 *.lzma *.gz *.xz *.lzo *.lz *.lrz
done
done
gnuplot <(echo "set terminal svg;set ylabel 'Time (nanoseconds)' textcolor lt 1; set xlabel 'Size (Number of paragraphs of random lorem ipsum text)' textcolor lt 2;plot 'lzma.compress' title 'lzma' with lines, 'xz.compress' title 'xz' with lines, 'gzip.compress' title 'gzip' with lines, 'lzip.compress' title 'lzip' with lines, 'lzop.compress' title 'lzop' with lines, 'lrzip.compress' title 'lrzip' with lines, 'bzip2.compress' title 'bzip2' with lines") > compress.svg
gnuplot <(echo "set terminal svg;set ylabel 'Time (nanoseconds)' textcolor lt 1; set xlabel 'Size (Number of paragraphs of random lorem ipsum text)' textcolor lt 2;plot 'lzma.decompress' title 'lzma' with lines, 'xz.decompress' title 'xz' with lines, 'gzip.decompress' title 'gzip' with lines, 'lzip.decompress' title 'lzip' with lines, 'lzop.decompress' title 'lzop' with lines, 'lrzip.decompress' title 'lrzip' with lines, 'bzip2.decompress' title 'bzip2' with lines") > decompress.svg
gnuplot <(echo "set terminal svg;set ylabel 'Compression factor' textcolor lt 1; set xlabel 'Size (Number of paragraphs of random lorem ipsum text)' textcolor lt 2;plot 'lzma.factor' title 'lzma' with lines, 'xz.factor' title 'xz' with lines, 'gzip.factor' title 'gzip' with lines, 'lzip.factor' title 'lzip' with lines, 'lzop.factor' title 'lzop' with lines, 'lrzip.factor' title 'lrzip' with lines, 'bzip2.factor' title 'bzip2' with lines") > factor.svg
|
Licensing
[edit]This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 09:06, 22 July 2016 | 600 × 480 (9 KB) | Offnfopt (talk | contribs) | Valid SVG | |
00:55, 7 September 2011 | 600 × 480 (10 KB) | AzaToth (talk | contribs) |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 600 |
---|---|
Height | 480 |