Wiki page
[benchmarks (2019 update)] by
sandro
2019-02-08 16:05:24.
0000: 44 20 32 30 31 39 2d 30 32 2d 30 38 54 31 36 3a D 2019-02-08T16:
0010: 30 35 3a 32 34 2e 31 38 31 0a 4c 20 62 65 6e 63 05:24.181.L benc
0020: 68 6d 61 72 6b 73 5c 73 28 32 30 31 39 5c 73 75 hmarks\s(2019\su
0030: 70 64 61 74 65 29 0a 50 20 62 32 36 37 66 64 63 pdate).P b267fdc
0040: 37 36 62 34 66 37 35 38 62 38 32 30 36 66 30 66 76b4f758b8206f0f
0050: 38 61 35 35 32 61 35 66 64 66 32 64 30 35 61 62 8a552a5fdf2d05ab
0060: 61 0a 55 20 73 61 6e 64 72 6f 0a 57 20 33 36 39 a.U sandro.W 369
0070: 35 35 0a 42 61 63 6b 20 74 6f 20 3c 61 20 68 72 55.Back to <a hr
0080: 65 66 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e ef="https://www.
0090: 67 61 69 61 2d 67 69 73 2e 69 74 2f 66 6f 73 73 gaia-gis.it/foss
00a0: 69 6c 2f 6c 69 62 72 61 73 74 65 72 6c 69 74 65 il/librasterlite
00b0: 32 2f 77 69 6b 69 3f 6e 61 6d 65 3d 72 61 73 74 2/wiki?name=rast
00c0: 65 72 6c 69 74 65 32 2d 64 6f 63 22 3e 52 61 73 erlite2-doc">Ras
00d0: 74 65 72 4c 69 74 65 32 20 64 6f 63 20 69 6e 64 terLite2 doc ind
00e0: 65 78 3c 2f 61 3e 3c 68 72 3e 3c 62 72 3e 0d 0a ex</a><hr><br>..
00f0: 3c 68 31 3e 52 61 73 74 65 72 4c 69 74 65 32 20 <h1>RasterLite2
0100: 72 65 66 65 72 65 6e 63 65 20 42 65 6e 63 68 6d reference Benchm
0110: 61 72 6b 73 20 28 32 30 31 39 20 75 70 64 61 74 arks (2019 updat
0120: 65 29 3c 2f 68 31 3e 0d 0a 3c 68 32 3e 49 6e 74 e)</h1>..<h2>Int
0130: 65 6e 64 65 64 20 73 63 6f 70 65 73 3c 2f 68 32 ended scopes</h2
0140: 3e 0d 0a 49 6e 20 72 65 63 65 6e 74 20 79 65 61 >..In recent yea
0150: 72 73 20 6e 65 77 20 61 6e 64 20 69 6e 6e 6f 76 rs new and innov
0160: 61 74 69 76 65 20 3c 61 20 68 72 65 66 3d 22 68 ative <a href="h
0170: 74 74 70 73 3a 2f 2f 65 6e 2e 77 69 6b 69 70 65 ttps://en.wikipe
0180: 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 4c 6f 73 dia.org/wiki/Los
0190: 73 6c 65 73 73 5f 63 6f 6d 70 72 65 73 73 69 6f sless_compressio
01a0: 6e 22 3e 6c 6f 73 73 6c 65 73 73 20 63 6f 6d 70 n">lossless comp
01b0: 72 65 73 73 69 6f 6e 20 61 6c 67 6f 72 69 74 68 ression algorith
01c0: 6d 73 3c 2f 61 3e 20 68 61 76 65 20 62 65 65 6e ms</a> have been
01d0: 20 64 65 76 65 6c 6f 70 65 64 2e 3c 62 72 3e 0d developed.<br>.
01e0: 0a 54 68 65 20 63 75 72 72 65 6e 74 20 62 65 6e .The current ben
01f0: 63 68 6d 61 72 6b 20 69 73 20 69 6e 74 65 6e 64 chmark is intend
0200: 65 64 20 74 6f 20 63 68 65 63 6b 20 61 6e 64 20 ed to check and
0210: 76 65 72 69 66 79 20 62 79 20 70 72 61 63 74 69 verify by practi
0220: 63 61 6c 20 74 65 73 74 69 6e 67 20 68 6f 77 20 cal testing how
0230: 74 68 65 73 65 20 6e 65 77 20 63 6f 6d 70 72 65 these new compre
0240: 73 73 69 6f 6e 20 6d 65 74 68 6f 64 73 20 64 6f ssion methods do
0250: 20 70 72 61 63 74 69 63 61 6c 6c 79 20 70 65 72 practically per
0260: 66 6f 72 6d 20 75 6e 64 65 72 20 74 68 65 20 6d form under the m
0270: 6f 73 74 20 75 73 75 61 6c 20 63 6f 6e 64 69 74 ost usual condit
0280: 69 6f 6e 73 2e 3c 62 72 3e 0d 0a 4d 6f 72 65 20 ions.<br>..More
0290: 73 70 65 63 69 66 69 63 61 6c 6c 79 2c 20 61 20 specifically, a
02a0: 63 6f 6d 70 61 72 69 73 6f 6e 20 77 69 6c 6c 20 comparison will
02b0: 62 65 20 6d 61 64 65 20 62 65 74 77 65 65 6e 20 be made between
02c0: 74 68 65 20 72 65 6c 61 74 69 76 65 20 70 65 72 the relative per
02d0: 66 6f 72 6d 61 6e 63 65 73 20 6f 66 20 6e 65 77 formances of new
02e0: 20 61 6e 64 20 6f 6c 64 65 72 20 6c 6f 73 73 6c and older lossl
02f0: 65 73 73 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 ess compression
0300: 6d 65 74 68 6f 64 73 2e 0d 0a 3c 68 32 3e 54 68 methods...<h2>Th
0310: 65 20 63 6f 6e 74 65 6e 64 65 72 73 3c 2f 68 32 e contenders</h2
0320: 3e 0d 0a 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 >..The following
0330: 20 3c 62 3e 3c 69 3e 67 65 6e 65 72 61 6c 20 70 <b><i>general p
0340: 75 72 70 6f 73 65 3c 2f 69 3e 3c 2f 62 3e 20 6c urpose</i></b> l
0350: 6f 73 73 6c 65 73 73 20 63 6f 6d 70 72 65 73 73 ossless compress
0360: 69 6f 6e 20 6d 65 74 68 6f 64 73 20 77 69 6c 6c ion methods will
0370: 20 62 65 20 73 79 73 74 65 6d 61 74 69 63 61 6c be systematical
0380: 6c 79 20 63 6f 6d 70 61 72 65 64 3a 0d 0a 3c 75 ly compared:..<u
0390: 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 44 45 46 4c 41 l>..<li><b>DEFLA
03a0: 54 45 3c 2f 62 3e 3a 20 28 61 6b 61 20 3c 62 3e TE</b>: (aka <b>
03b0: 5a 69 70 3c 2f 62 3e 29 3c 62 72 3e 0d 0a 3c 61 Zip</b>)<br>..<a
03c0: 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 65 href="https://e
03d0: 6e 2e 77 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f n.wikipedia.org/
03e0: 77 69 6b 69 2f 44 45 46 4c 41 54 45 22 3e 54 68 wiki/DEFLATE">Th
03f0: 69 73 3c 2f 61 3e 20 69 73 20 74 68 65 20 6d 6f is</a> is the mo
0400: 73 74 20 63 6c 61 73 73 69 63 20 61 6e 64 20 61 st classic and a
0410: 6c 6d 6f 73 74 20 75 6e 69 76 65 72 73 61 6c 6c lmost universall
0420: 79 20 61 64 6f 70 74 65 64 20 6c 6f 73 73 6c 65 y adopted lossle
0430: 73 73 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 6d ss compression m
0440: 65 74 68 6f 64 2e 3c 62 72 3e 0d 0a 49 74 20 77 ethod.<br>..It w
0450: 61 73 20 69 6e 69 74 69 61 6c 6c 79 20 69 6e 74 as initially int
0460: 72 6f 64 75 63 65 64 20 61 62 6f 75 74 20 33 30 roduced about 30
0470: 20 79 65 61 72 73 20 61 67 6f 20 28 69 6e 20 3c years ago (in <
0480: 62 3e 31 39 39 31 3c 2f 62 3e 29 2c 20 73 6f 20 b>1991</b>), so
0490: 69 74 20 63 61 6e 20 62 65 20 61 73 73 75 6d 65 it can be assume
04a0: 64 20 74 6f 20 62 65 20 74 68 65 20 76 65 6e 65 d to be the vene
04b0: 72 61 62 6c 65 20 64 65 63 61 6e 65 20 6f 66 20 rable decane of
04c0: 61 6c 6c 20 74 68 65 6d 2e 3c 2f 6c 69 3e 0d 0a all them.</li>..
04d0: 3c 6c 69 3e 3c 62 3e 4c 5a 4d 41 3c 2f 62 3e 3a <li><b>LZMA</b>:
04e0: 20 28 61 6b 61 20 3c 62 3e 37 2d 5a 69 70 3c 2f (aka <b>7-Zip</
04f0: 62 3e 29 3c 62 72 3e 0d 0a 3c 61 20 68 72 65 66 b>)<br>..<a href
0500: 3d 22 68 74 74 70 73 3a 2f 2f 65 6e 2e 77 69 6b ="https://en.wik
0510: 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f ipedia.org/wiki/
0520: 4c 65 6d 70 65 6c 25 45 32 25 38 30 25 39 33 5a Lempel%E2%80%93Z
0530: 69 76 25 45 32 25 38 30 25 39 33 4d 61 72 6b 6f iv%E2%80%93Marko
0540: 76 5f 63 68 61 69 6e 5f 61 6c 67 6f 72 69 74 68 v_chain_algorith
0550: 6d 22 3e 54 68 69 73 3c 2f 61 3e 20 69 73 20 61 m">This</a> is a
0560: 20 77 65 6c 6c 20 6b 6e 6f 77 6e 20 61 6e 64 20 well known and
0570: 77 69 64 65 6c 79 20 61 64 6f 70 74 65 64 20 6c widely adopted l
0580: 6f 73 73 6c 65 73 73 20 63 6f 6d 70 72 65 73 73 ossless compress
0590: 69 6f 6e 20 6d 65 74 68 6f 64 2e 3c 62 72 3e 0d ion method.<br>.
05a0: 0a 49 74 27 73 20 79 6f 75 6e 67 65 72 20 74 68 .It's younger th
05b0: 61 6e 20 44 45 46 4c 41 54 45 20 68 61 76 69 6e an DEFLATE havin
05c0: 67 20 62 65 65 6e 20 69 6e 74 72 6f 64 75 63 65 g been introduce
05d0: 64 20 61 62 6f 75 74 20 32 30 20 79 65 61 72 73 d about 20 years
05e0: 20 61 67 6f 20 28 69 6e 20 3c 62 3e 31 39 39 38 ago (in <b>1998
05f0: 3c 2f 62 3e 29 2e 20 4c 5a 4d 41 20 69 73 20 61 </b>). LZMA is a
0600: 6e 20 65 78 74 72 65 6d 69 73 74 20 69 6e 74 65 n extremist inte
0610: 72 70 72 65 74 61 74 69 6f 6e 20 6f 66 20 6c 6f rpretation of lo
0620: 73 73 6c 65 73 73 20 63 6f 6d 70 72 65 73 73 69 ssless compressi
0630: 6f 6e 2e 3c 62 72 3e 20 49 74 27 73 20 75 73 75 on.<br> It's usu
0640: 61 6c 6c 79 20 61 62 6c 65 20 74 6f 20 61 63 68 ally able to ach
0650: 69 65 76 65 20 72 65 61 6c 6c 79 20 69 6d 70 72 ieve really impr
0660: 65 73 73 69 76 65 20 63 6f 6d 70 72 65 73 73 69 essive compressi
0670: 6f 6e 20 72 61 74 69 6f 73 20 28 62 79 20 66 61 on ratios (by fa
0680: 72 20 62 65 74 74 65 72 20 74 68 61 6e 20 44 45 r better than DE
0690: 46 4c 41 54 45 20 63 61 6e 20 64 6f 29 2c 20 62 FLATE can do), b
06a0: 75 74 20 61 74 20 74 68 65 20 63 6f 73 74 20 6f ut at the cost o
06b0: 66 20 73 65 76 65 72 65 6c 79 20 73 61 63 72 69 f severely sacri
06c0: 66 69 63 69 6e 67 20 74 68 65 20 63 6f 6d 70 72 ficing the compr
06d0: 65 73 73 69 6f 6e 20 73 70 65 65 64 3b 20 4c 5a ession speed; LZ
06e0: 4d 41 20 63 61 6e 20 62 65 20 65 61 73 69 6c 79 MA can be easily
06f0: 20 64 65 61 64 6c 79 20 73 6c 6f 77 2e 3c 2f 6c deadly slow.</l
0700: 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 4c 5a 34 3c 2f i>..<li><b>LZ4</
0710: 62 3e 3c 62 72 3e 0d 0a 3c 61 20 68 72 65 66 3d b><br>..<a href=
0720: 22 68 74 74 70 73 3a 2f 2f 65 6e 2e 77 69 6b 69 "https://en.wiki
0730: 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 4c pedia.org/wiki/L
0740: 5a 34 5f 28 63 6f 6d 70 72 65 73 73 69 6f 6e 5f Z4_(compression_
0750: 61 6c 67 6f 72 69 74 68 6d 29 22 3e 54 68 69 73 algorithm)">This
0760: 3c 2f 61 3e 20 69 73 20 61 20 6d 6f 72 65 20 6d </a> is a more m
0770: 6f 64 65 72 6e 20 61 6c 67 6f 72 69 74 68 6d 20 odern algorithm
0780: 68 61 76 69 6e 67 20 62 65 65 6e 20 69 6e 74 72 having been intr
0790: 6f 64 75 63 65 64 20 6c 65 73 73 20 74 68 61 6e oduced less than
07a0: 20 31 30 20 79 65 61 72 73 20 61 67 6f 20 28 69 10 years ago (i
07b0: 6e 20 3c 62 3e 32 30 31 31 3c 2f 62 3e 29 2c 20 n <b>2011</b>),
07c0: 73 6f 20 69 74 27 73 20 64 69 66 66 75 73 69 6f so it's diffusio
07d0: 6e 20 61 6e 64 20 61 64 6f 70 74 69 6f 6e 20 69 n and adoption i
07e0: 73 20 73 74 69 6c 6c 20 72 61 74 68 65 72 20 6c s still rather l
07f0: 69 6d 69 74 65 64 2e 3c 62 72 3e 0d 0a 4c 5a 34 imited.<br>..LZ4
0800: 20 74 6f 6f 20 69 73 20 61 6e 20 65 78 74 72 65 too is an extre
0810: 6d 69 73 74 20 69 6e 74 65 72 70 72 65 74 61 74 mist interpretat
0820: 69 6f 6e 20 6f 66 20 6c 6f 73 73 6c 65 73 73 20 ion of lossless
0830: 63 6f 6d 70 72 65 73 73 69 6f 6e 2c 20 62 75 74 compression, but
0840: 20 69 74 20 67 6f 65 73 20 65 78 61 63 74 6c 79 it goes exactly
0850: 20 69 6e 20 74 68 65 20 6f 70 70 6f 73 69 74 65 in the opposite
0860: 20 64 69 72 65 63 74 69 6f 6e 20 6f 66 20 4c 5a direction of LZ
0870: 4d 41 2e 3c 62 72 3e 0d 0a 49 74 27 73 20 73 74 MA.<br>..It's st
0880: 72 6f 6e 67 6c 79 20 6f 70 74 69 6d 69 7a 65 64 rongly optimized
0890: 20 73 6f 20 74 6f 20 62 65 20 65 78 74 72 65 6d so to be extrem
08a0: 65 6c 79 20 66 61 73 74 2c 20 62 75 74 20 61 74 ely fast, but at
08b0: 20 74 68 65 20 63 6f 73 74 20 6f 66 20 73 61 63 the cost of sac
08c0: 72 69 66 69 63 69 6e 67 20 74 68 65 20 63 6f 6d rificing the com
08d0: 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f 73 2e pression ratios.
08e0: 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 5a 53 </li>..<li><b>ZS
08f0: 54 44 3c 2f 62 3e 20 28 61 6b 61 20 3c 62 3e 5a TD</b> (aka <b>Z
0900: 73 74 61 6e 64 61 72 64 3c 2f 62 3e 29 3c 62 72 standard</b>)<br
0910: 3e 0d 0a 3c 61 20 68 72 65 66 3d 22 68 74 74 70 >..<a href="http
0920: 73 3a 2f 2f 65 6e 2e 77 69 6b 69 70 65 64 69 61 s://en.wikipedia
0930: 2e 6f 72 67 2f 77 69 6b 69 2f 5a 73 74 61 6e 64 .org/wiki/Zstand
0940: 61 72 64 22 3e 54 68 69 73 3c 2f 61 3e 20 69 73 ard">This</a> is
0950: 20 61 20 76 65 72 79 20 72 65 63 65 6e 74 6c 79 a very recently
0960: 20 69 6e 74 72 6f 64 75 63 65 64 20 61 6c 67 6f introduced algo
0970: 72 69 74 68 6d 20 28 3c 62 3e 32 30 31 35 3c 2f rithm (<b>2015</
0980: 62 3e 29 2c 20 61 6e 64 20 69 74 27 73 20 61 64 b>), and it's ad
0990: 6f 70 74 69 6f 6e 20 69 73 20 73 74 69 6c 6c 20 option is still
09a0: 72 61 74 68 65 72 20 6c 69 6d 69 74 65 64 2e 3c rather limited.<
09b0: 62 72 3e 0d 0a 43 75 72 69 6f 75 73 6c 79 20 65 br>..Curiously e
09c0: 6e 6f 75 67 68 2c 20 62 6f 74 68 20 4c 5a 34 20 nough, both LZ4
09d0: 61 6e 64 20 5a 53 54 44 20 61 72 65 20 64 65 76 and ZSTD are dev
09e0: 65 6c 6f 70 65 64 20 61 6e 64 20 6d 61 69 6e 74 eloped and maint
09f0: 61 69 6e 65 64 20 62 79 20 74 68 65 20 73 61 6d ained by the sam
0a00: 65 20 61 75 74 68 6f 72 20 28 59 61 6e 6e 20 43 e author (Yann C
0a10: 6f 6c 6c 65 74 29 2e 3c 62 72 3e 0d 0a 5a 53 54 ollet).<br>..ZST
0a20: 44 20 69 73 20 61 20 77 65 6c 6c 20 62 61 6c 61 D is a well bala
0a30: 6e 63 65 64 20 61 6c 67 6f 72 69 74 68 6d 20 70 nced algorithm p
0a40: 72 65 74 65 6e 64 69 6e 67 20 74 6f 20 62 65 20 retending to be
0a50: 61 20 6d 6f 73 74 20 6d 6f 64 65 72 6e 20 72 65 a most modern re
0a60: 70 6c 61 63 65 6d 65 6e 74 20 66 6f 72 20 44 45 placement for DE
0a70: 46 4c 41 54 45 2c 20 62 65 69 6e 67 20 61 62 6c FLATE, being abl
0a80: 65 20 74 6f 20 62 65 20 66 61 73 74 65 72 20 61 e to be faster a
0a90: 6e 64 2f 6f 72 20 74 6f 20 61 63 68 69 65 76 65 nd/or to achieve
0aa0: 20 62 65 74 74 65 72 20 63 6f 6d 70 72 65 73 73 better compress
0ab0: 69 6f 6e 20 72 61 74 69 6f 73 2e 3c 62 72 3e 0d ion ratios.<br>.
0ac0: 0a 4a 75 73 74 20 66 65 77 20 74 65 63 68 6e 69 .Just few techni
0ad0: 63 61 6c 20 64 65 74 61 69 6c 73 20 61 62 6f 75 cal details abou
0ae0: 74 20 74 68 65 20 6d 6f 73 74 20 72 65 6c 65 76 t the most relev
0af0: 61 6e 74 20 69 6e 6e 6f 76 61 74 69 6f 6e 73 20 ant innovations
0b00: 69 6e 74 72 6f 64 75 63 65 64 20 62 79 20 5a 53 introduced by ZS
0b10: 54 44 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 54 TD:..<ul>..<li>T
0b20: 68 65 20 6f 6c 64 20 44 45 46 4c 41 54 45 20 77 he old DEFLATE w
0b30: 61 73 20 64 65 73 69 67 6e 65 64 20 73 6f 20 74 as designed so t
0b40: 6f 20 72 65 71 75 69 72 65 20 61 20 76 65 72 79 o require a very
0b50: 20 6c 69 6d 69 74 65 64 20 61 6d 6f 75 6e 74 20 limited amount
0b60: 6f 66 20 6d 65 6d 6f 72 79 2c 20 61 6e 64 20 74 of memory, and t
0b70: 68 69 73 20 69 6d 70 61 69 72 65 64 20 73 6f 6d his impaired som
0b80: 65 77 61 79 20 69 74 27 73 20 65 66 66 69 63 69 eway it's effici
0b90: 65 6e 63 79 2e 3c 62 72 3e 0d 0a 4d 6f 64 65 72 ency.<br>..Moder
0ba0: 6e 20 48 57 20 63 61 6e 20 65 61 73 69 6c 79 20 n HW can easily
0bb0: 73 75 70 70 6f 72 74 20 61 20 6c 6f 74 20 6f 66 support a lot of
0bc0: 20 6d 65 6d 6f 72 79 2c 20 73 6f 20 5a 53 54 44 memory, so ZSTD
0bd0: 20 62 6f 72 72 6f 77 73 20 66 65 77 20 69 64 65 borrows few ide
0be0: 61 73 20 66 72 6f 6d 20 4c 5a 4d 41 20 61 62 6f as from LZMA abo
0bf0: 75 74 20 61 20 6c 65 73 73 20 63 6f 6e 73 74 72 ut a less constr
0c00: 61 69 6e 65 64 20 61 6e 64 20 6d 6f 72 65 20 65 ained and more e
0c10: 66 66 69 63 69 65 6e 74 20 6d 65 6d 6f 72 79 20 fficient memory
0c20: 75 73 61 67 65 2e 3c 62 72 3e 0d 0a 4d 6f 72 65 usage.<br>..More
0c30: 20 73 70 65 63 69 66 69 63 61 6c 6c 79 2c 20 44 specifically, D
0c40: 45 46 4c 41 54 45 20 69 73 20 62 61 73 65 64 20 EFLATE is based
0c50: 6f 6e 20 61 20 6d 6f 76 69 6e 67 20 64 61 74 61 on a moving data
0c60: 20 77 69 6e 64 6f 77 20 6f 66 20 6f 6e 6c 79 20 window of only
0c70: 3c 62 3e 33 32 4b 42 3c 2f 62 3e 3b 20 62 6f 74 <b>32KB</b>; bot
0c80: 68 20 4c 5a 4d 41 20 61 6e 64 20 5a 53 54 44 20 h LZMA and ZSTD
0c90: 61 64 6f 70 74 20 61 20 6d 6f 72 65 20 67 65 6e adopt a more gen
0ca0: 65 72 6f 75 73 20 6d 6f 76 69 6e 67 20 77 69 6e erous moving win
0cb0: 64 6f 77 20 6f 66 20 3c 62 3e 31 4d 42 3c 2f 62 dow of <b>1MB</b
0cc0: 3e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 42 6f 74 >.</li>..<li>Bot
0cd0: 68 20 44 45 46 4c 41 54 45 20 61 6e 64 20 5a 53 h DEFLATE and ZS
0ce0: 54 44 20 61 64 6f 70 74 73 20 74 68 65 20 63 6c TD adopts the cl
0cf0: 61 73 73 69 63 20 3c 61 20 68 72 65 66 3d 22 68 assic <a href="h
0d00: 74 74 70 73 3a 2f 2f 65 6e 2e 77 69 6b 69 70 65 ttps://en.wikipe
0d10: 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 48 75 66 dia.org/wiki/Huf
0d20: 66 6d 61 6e 5f 63 6f 64 69 6e 67 22 3e 48 75 66 fman_coding">Huf
0d30: 66 6d 61 6e 20 63 6f 64 69 6e 67 3c 2f 61 3e 20 fman coding</a>
0d40: 66 6f 72 20 72 65 64 75 63 69 6e 67 20 74 68 65 for reducing the
0d50: 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 65 6e 74 information ent
0d60: 72 6f 70 79 2e 3c 62 72 3e 0d 0a 42 75 74 20 5a ropy.<br>..But Z
0d70: 53 54 44 20 63 61 6e 20 61 6c 73 6f 20 73 75 70 STD can also sup
0d80: 70 6f 72 74 20 61 20 66 75 72 74 68 65 72 20 61 port a further a
0d90: 64 76 61 6e 63 65 64 20 6d 65 63 68 61 6e 69 73 dvanced mechanis
0da0: 6d 20 62 61 73 65 64 20 6f 6e 20 3c 61 20 68 72 m based on <a hr
0db0: 65 66 3d 22 68 74 74 70 73 3a 2f 2f 65 6e 2e 77 ef="https://en.w
0dc0: 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b ikipedia.org/wik
0dd0: 69 2f 41 73 79 6d 6d 65 74 72 69 63 5f 6e 75 6d i/Asymmetric_num
0de0: 65 72 61 6c 5f 73 79 73 74 65 6d 73 23 74 41 4e eral_systems#tAN
0df0: 53 22 3e 46 69 6e 69 74 65 20 53 74 61 74 65 20 S">Finite State
0e00: 45 6e 74 72 6f 70 79 3c 2f 61 3e 2c 20 61 20 76 Entropy</a>, a v
0e10: 65 72 79 20 72 65 63 65 6e 74 20 74 65 63 68 6e ery recent techn
0e20: 69 71 75 65 20 62 65 69 6e 67 20 6d 75 63 68 20 ique being much
0e30: 66 61 73 74 65 72 2e 3c 2f 6c 69 3e 0d 0a 3c 2f faster.</li>..</
0e40: 75 6c 3e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d ul></li>..</ul>.
0e50: 0a 3c 62 72 3e 0d 0a 57 68 65 6e 65 76 65 72 20 .<br>..Whenever
0e60: 70 6f 73 73 69 62 6c 65 20 61 6e 64 20 61 70 70 possible and app
0e70: 72 6f 70 72 69 61 74 65 20 74 68 65 20 66 6f 6c ropriate the fol
0e80: 6c 6f 77 69 6e 67 20 6c 6f 73 73 6c 65 73 73 20 lowing lossless
0e90: 63 6f 6d 70 72 65 73 73 69 6f 6e 20 6d 65 74 68 compression meth
0ea0: 6f 64 73 20 73 70 65 63 69 66 69 63 61 6c 6c 79 ods specifically
0eb0: 20 69 6e 74 65 6e 64 65 64 20 66 6f 72 20 3c 62 intended for <b
0ec0: 3e 3c 69 3e 69 6d 61 67 65 73 20 2f 20 72 61 73 ><i>images / ras
0ed0: 74 65 72 73 3c 2f 69 3e 3c 2f 62 3e 20 77 69 6c ters</i></b> wil
0ee0: 6c 20 62 65 20 74 65 73 74 65 64 20 61 73 20 77 l be tested as w
0ef0: 65 6c 6c 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e ell:..<ul>..<li>
0f00: 3c 62 3e 50 4e 47 3c 2f 62 3e 3c 62 72 3e 0d 0a <b>PNG</b><br>..
0f10: 3c 61 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f <a href="https:/
0f20: 2f 65 6e 2e 77 69 6b 69 70 65 64 69 61 2e 6f 72 /en.wikipedia.or
0f30: 67 2f 77 69 6b 69 2f 50 6f 72 74 61 62 6c 65 5f g/wiki/Portable_
0f40: 4e 65 74 77 6f 72 6b 5f 47 72 61 70 68 69 63 73 Network_Graphics
0f50: 22 3e 54 68 69 73 3c 2f 61 3e 20 69 73 20 61 20 ">This</a> is a
0f60: 76 65 72 79 20 70 6f 70 75 6c 61 72 20 66 6f 72 very popular for
0f70: 6d 61 74 20 73 75 70 70 6f 72 74 69 6e 67 20 52 mat supporting R
0f80: 47 42 20 61 6e 64 20 47 72 61 79 73 63 61 6c 65 GB and Grayscale
0f90: 20 69 6d 61 67 65 73 20 28 77 69 74 68 20 6f 72 images (with or
0fa0: 20 77 69 74 68 6f 75 74 20 41 6c 70 68 61 20 74 without Alpha t
0fb0: 72 61 6e 73 70 61 72 65 6e 63 69 65 73 29 2e 3c ransparencies).<
0fc0: 62 72 3e 0d 0a 50 4e 47 20 66 75 6c 6c 79 20 64 br>..PNG fully d
0fd0: 65 70 65 6e 64 73 20 6f 6e 20 44 45 46 4c 41 54 epends on DEFLAT
0fe0: 45 20 66 6f 72 20 64 61 74 61 20 63 6f 6d 70 72 E for data compr
0ff0: 65 73 73 69 6f 6e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c ession.</li>..<l
1000: 69 3e 3c 62 3e 43 68 61 72 4c 53 3c 2f 62 3e 3c i><b>CharLS</b><
1010: 62 72 3e 0d 0a 54 68 69 73 20 69 73 20 61 6e 20 br>..This is an
1020: 69 6d 61 67 65 20 66 6f 72 6d 61 74 20 28 52 47 image format (RG
1030: 42 20 61 6e 64 20 47 72 61 79 73 63 61 6c 65 29 B and Grayscale)
1040: 20 68 61 76 69 6e 67 20 61 20 6c 69 6d 69 74 65 having a limite
1050: 64 20 64 69 66 66 75 73 69 6f 6e 20 62 75 74 20 d diffusion but
1060: 72 61 74 68 65 72 20 70 6f 70 75 6c 61 72 20 66 rather popular f
1070: 6f 72 20 73 74 6f 72 79 69 6e 67 20 6d 65 64 69 or storying medi
1080: 63 61 6c 20 69 6d 61 67 65 72 79 2e 3c 62 72 3e cal imagery.<br>
1090: 0d 0a 43 68 61 72 4c 53 20 69 73 20 62 61 73 65 ..CharLS is base
10a0: 64 20 6f 6e 20 3c 61 20 68 72 65 66 3d 22 68 74 d on <a href="ht
10b0: 74 70 73 3a 2f 2f 65 6e 2e 77 69 6b 69 70 65 64 tps://en.wikiped
10c0: 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 4c 6f 73 73 ia.org/wiki/Loss
10d0: 6c 65 73 73 5f 4a 50 45 47 22 3e 4c 6f 73 73 6c less_JPEG">Lossl
10e0: 65 73 73 20 4a 50 45 47 3c 2f 61 3e 2c 20 61 20 ess JPEG</a>, a
10f0: 67 65 6e 75 69 6e 65 6c 79 20 6c 6f 73 73 6c 65 genuinely lossle
1100: 73 73 20 69 6d 61 67 65 20 63 6f 6d 70 72 65 73 ss image compres
1110: 73 69 6f 6e 20 73 63 68 65 6d 61 0d 0a 6e 6f 74 sion schema..not
1120: 20 74 6f 20 62 65 20 63 6f 6e 66 75 73 65 64 20 to be confused
1130: 77 69 74 68 20 70 6c 61 69 6e 20 4a 50 45 47 20 with plain JPEG
1140: 28 74 68 61 74 20 69 73 20 74 68 65 20 6d 6f 73 (that is the mos
1150: 74 20 63 6c 61 73 73 69 63 20 65 78 61 6d 70 6c t classic exampl
1160: 65 20 6f 66 20 3c 61 20 68 72 65 66 3d 22 68 74 e of <a href="ht
1170: 74 70 73 3a 2f 2f 65 6e 2e 77 69 6b 69 70 65 64 tps://en.wikiped
1180: 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 4c 6f 73 73 ia.org/wiki/Loss
1190: 79 5f 63 6f 6d 70 72 65 73 73 69 6f 6e 22 3e 6c y_compression">l
11a0: 6f 73 73 79 20 63 6f 6d 70 72 65 73 73 69 6f 6e ossy compression
11b0: 3c 2f 61 3e 29 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 </a>).</li>..<li
11c0: 3e 3c 62 3e 4a 70 65 67 32 30 30 30 3c 2f 62 3e ><b>Jpeg2000</b>
11d0: 3c 62 72 3e 0d 0a 3c 61 20 68 72 65 66 3d 22 68 <br>..<a href="h
11e0: 74 74 70 73 3a 2f 2f 65 6e 2e 77 69 6b 69 70 65 ttps://en.wikipe
11f0: 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 4a 50 45 dia.org/wiki/JPE
1200: 47 5f 32 30 30 30 22 3e 54 68 69 73 3c 2f 61 3e G_2000">This</a>
1210: 20 69 73 20 69 6e 74 65 6e 64 65 64 20 74 6f 20 is intended to
1220: 62 65 20 61 20 6d 6f 72 65 20 61 64 76 61 6e 63 be a more advanc
1230: 65 64 20 72 65 70 6c 61 63 65 6d 65 6e 74 20 66 ed replacement f
1240: 6f 72 20 4a 50 45 47 2c 20 62 75 74 20 69 74 27 or JPEG, but it'
1250: 73 20 6e 6f 74 20 79 65 74 20 73 6f 20 77 69 64 s not yet so wid
1260: 65 6c 79 20 73 75 70 70 6f 72 74 65 64 20 61 73 ely supported as
1270: 20 69 74 73 20 61 6e 63 65 73 74 6f 72 2e 3c 62 its ancestor.<b
1280: 72 3e 0d 0a 4a 70 65 67 32 30 30 30 20 69 73 20 r>..Jpeg2000 is
1290: 61 6e 20 69 6e 68 65 72 65 6e 74 6c 79 20 3c 62 an inherently <b
12a0: 3e 6c 6f 73 73 79 20 63 6f 6d 70 72 65 73 73 69 >lossy compressi
12b0: 6f 6e 3c 2f 62 3e 2c 20 62 75 74 20 75 6e 64 65 on</b>, but unde
12c0: 72 20 73 70 65 63 69 61 6c 20 73 65 74 74 69 6e r special settin
12d0: 67 73 20 69 74 20 63 61 6e 20 65 66 66 65 63 74 gs it can effect
12e0: 69 76 65 6c 79 20 73 75 70 70 6f 72 74 20 61 20 ively support a
12f0: 67 65 6e 75 69 6e 65 20 3c 62 3e 6c 6f 73 73 6c genuine <b>lossl
1300: 65 73 73 20 63 6f 6d 70 72 65 73 73 69 6f 6e 3c ess compression<
1310: 2f 62 3e 20 6d 6f 64 65 2e 3c 2f 6c 69 3e 0d 0a /b> mode.</li>..
1320: 3c 6c 69 3e 3c 62 3e 57 65 62 50 3c 2f 62 3e 3c <li><b>WebP</b><
1330: 62 72 3e 0d 0a 3c 61 20 68 72 65 66 3d 22 68 74 br>..<a href="ht
1340: 74 70 73 3a 2f 2f 65 6e 2e 77 69 6b 69 70 65 64 tps://en.wikiped
1350: 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 57 65 62 50 ia.org/wiki/WebP
1360: 22 3e 54 68 69 73 3c 2f 61 3e 20 74 6f 6f 20 69 ">This</a> too i
1370: 73 20 61 6e 20 69 6e 6e 6f 76 61 74 69 76 65 20 s an innovative
1380: 69 6d 61 67 65 20 66 6f 72 6d 61 74 20 70 72 65 image format pre
1390: 74 65 6e 64 69 6e 67 20 74 6f 20 62 65 20 61 20 tending to be a
13a0: 62 65 74 74 65 72 20 72 65 70 6c 61 63 65 6d 65 better replaceme
13b0: 6e 74 20 66 6f 72 20 4a 50 45 47 2e 3c 62 72 3e nt for JPEG.<br>
13c0: 0d 0a 57 65 62 50 20 69 6d 61 67 65 73 20 61 72 ..WebP images ar
13d0: 65 20 65 78 70 65 63 74 65 64 20 74 6f 20 73 75 e expected to su
13e0: 70 70 6f 72 74 20 74 68 65 20 73 61 6d 65 20 76 pport the same v
13f0: 69 73 75 61 6c 20 71 75 61 6c 69 74 79 20 6f 66 isual quality of
1400: 20 4a 50 45 47 20 62 75 74 20 72 65 71 75 69 72 JPEG but requir
1410: 69 6e 67 20 61 20 73 69 67 6e 69 66 69 63 61 6e ing a significan
1420: 74 6c 79 20 72 65 64 75 63 65 64 20 73 74 6f 72 tly reduced stor
1430: 61 67 65 20 73 70 61 63 65 2e 3c 62 72 3e 0d 0a age space.<br>..
1440: 45 78 61 63 74 6c 79 20 61 73 20 4a 70 65 67 32 Exactly as Jpeg2
1450: 30 30 30 2c 20 57 65 62 50 20 74 6f 6f 20 69 73 000, WebP too is
1460: 20 61 6e 20 69 6e 68 65 72 65 6e 74 6c 79 20 3c an inherently <
1470: 62 3e 6c 6f 73 73 79 20 63 6f 6d 70 72 65 73 73 b>lossy compress
1480: 69 6f 6e 3c 2f 62 3e 2c 20 62 75 74 20 75 6e 64 ion</b>, but und
1490: 65 72 20 73 70 65 63 69 61 6c 20 73 65 74 74 69 er special setti
14a0: 6e 67 73 20 69 74 20 63 61 6e 20 65 66 66 65 63 ngs it can effec
14b0: 74 69 76 65 6c 79 20 73 75 70 70 6f 72 74 20 61 tively support a
14c0: 20 67 65 6e 75 69 6e 65 20 3c 62 3e 6c 6f 73 73 genuine <b>loss
14d0: 6c 65 73 73 20 63 6f 6d 70 72 65 73 73 69 6f 6e less compression
14e0: 3c 2f 62 3e 20 6d 6f 64 65 2e 3c 2f 6c 69 3e 0d </b> mode.</li>.
14f0: 0a 3c 2f 75 6c 3e 0d 0a 3c 62 72 3e 0d 0a 3c 74 .</ul>..<br>..<t
1500: 61 62 6c 65 20 63 65 6c 6c 73 70 61 63 69 6e 67 able cellspacing
1510: 3d 22 36 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 ="6" cellpadding
1520: 3d 22 38 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 ="8" bgcolor="#f
1530: 66 66 66 64 30 22 3e 0d 0a 3c 74 72 3e 3c 74 64 fffd0">..<tr><td
1540: 3e 0d 0a 3c 68 33 3e 4e 6f 74 65 3c 2f 68 33 3e >..<h3>Note</h3>
1550: 0d 0a 42 6f 74 68 20 3c 62 3e 4c 5a 34 3c 2f 62 ..Both <b>LZ4</b
1560: 3e 20 61 6e 64 20 3c 62 3e 5a 53 54 44 3c 2f 62 > and <b>ZSTD</b
1570: 3e 20 61 72 65 20 69 6e 74 65 72 6e 61 6c 6c 79 > are internally
1580: 20 63 61 6c 6c 65 64 20 62 79 20 74 68 65 20 6d called by the m
1590: 6f 73 74 20 72 65 63 65 6e 74 20 76 65 72 73 69 ost recent versi
15a0: 6f 6e 73 20 6f 66 20 74 68 65 20 4c 69 6e 75 78 ons of the Linux
15b0: 20 4b 65 72 6e 65 6c 2c 20 61 6e 64 20 74 68 69 Kernel, and thi
15c0: 73 20 73 75 72 65 6c 79 20 69 73 20 61 20 72 6f s surely is a ro
15d0: 62 75 73 74 20 77 61 72 72 61 6e 74 79 20 66 6f bust warranty fo
15e0: 72 20 68 69 67 68 20 71 75 61 6c 69 74 79 20 61 r high quality a
15f0: 6e 64 20 72 65 61 6c 6c 79 20 73 74 61 62 6c 65 nd really stable
1600: 20 63 6f 64 65 2e 3c 62 72 3e 3c 62 72 3e 0d 0a code.<br><br>..
1610: 54 68 65 20 6d 6f 73 74 20 72 65 63 65 6e 74 20 The most recent
1620: 76 65 72 73 69 6f 6e 73 20 6f 66 20 74 68 65 20 versions of the
1630: 76 65 72 79 20 70 6f 70 75 6c 61 72 20 3c 62 3e very popular <b>
1640: 6c 69 62 74 69 66 66 3c 2f 62 3e 20 61 6c 72 65 libtiff</b> alre
1650: 61 64 79 20 73 75 70 70 6f 72 74 20 74 68 65 20 ady support the
1660: 3c 62 3e 4c 5a 4d 41 3c 2f 62 3e 2c 20 3c 62 3e <b>LZMA</b>, <b>
1670: 57 45 42 50 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e WEBP</b> and <b>
1680: 5a 53 54 44 3c 2f 62 3e 20 63 6f 6d 70 72 65 73 ZSTD</b> compres
1690: 73 69 6f 6e 73 2c 20 61 6e 64 20 74 68 65 20 73 sions, and the s
16a0: 61 6d 65 20 73 75 70 70 6f 72 74 20 69 73 20 61 ame support is a
16b0: 76 61 69 6c 61 62 6c 65 20 6f 6e 20 3c 62 3e 47 vailable on <b>G
16c0: 44 41 4c 3c 2f 62 3e 2e 0d 0a 3c 2f 74 64 3e 3c DAL</b>...</td><
16d0: 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a /tr>..</table>..
16e0: 3c 62 72 3e 0d 0a 3c 68 72 3e 0d 0a 3c 68 31 3e <br>..<hr>..<h1>
16f0: 54 65 73 74 69 6e 67 20 67 65 6e 65 72 69 63 20 Testing generic
1700: 64 61 74 61 73 65 74 73 3c 2f 68 31 3e 0d 0a 57 datasets</h1>..W
1710: 65 27 6c 6c 20 73 74 61 72 74 20 66 69 72 73 74 e'll start first
1720: 20 62 79 20 74 65 73 74 69 6e 67 20 73 65 76 65 by testing seve
1730: 72 61 6c 20 67 65 6e 65 72 69 63 20 64 61 74 61 ral generic data
1740: 73 65 74 73 2c 20 73 6f 20 74 6f 20 73 74 72 65 sets, so to stre
1750: 73 73 20 61 6c 6c 20 63 6f 6d 70 72 65 73 73 69 ss all compressi
1760: 6f 6e 20 6d 65 74 68 6f 64 73 20 75 6e 64 65 72 on methods under
1770: 20 74 68 65 20 6d 6f 73 74 20 63 6f 6d 6d 6f 6e the most common
1780: 20 63 6f 6e 64 69 74 69 6f 6e 73 2e 3c 62 72 3e conditions.<br>
1790: 0d 0a 54 68 65 20 73 61 6d 65 20 64 61 74 61 73 ..The same datas
17a0: 65 74 20 77 69 6c 6c 20 62 65 20 63 6f 6d 70 72 et will be compr
17b0: 65 73 73 65 64 20 61 6e 64 20 74 68 65 6e 20 64 essed and then d
17c0: 65 63 6f 6d 70 72 65 73 73 65 64 20 75 73 69 6e ecompressed usin
17d0: 67 20 65 61 63 68 20 6d 65 74 68 6f 64 2c 20 73 g each method, s
17e0: 6f 20 74 6f 20 67 61 74 68 65 72 20 69 6e 66 6f o to gather info
17f0: 72 6d 61 74 69 6f 6e 73 20 61 62 6f 75 74 3a 0d rmations about:.
1800: 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 74 68 65 20 3c .<ul>..<li>the <
1810: 62 3e 73 69 7a 65 3c 2f 62 3e 20 6f 66 20 74 68 b>size</b> of th
1820: 65 20 72 65 73 75 6c 74 69 6e 67 20 63 6f 6d 70 e resulting comp
1830: 72 65 73 73 65 64 20 66 69 6c 65 2e 3c 62 72 3e ressed file.<br>
1840: 0d 0a 54 68 65 20 72 61 74 69 6f 20 62 65 74 77 ..The ratio betw
1850: 65 65 6e 20 74 68 65 20 75 6e 63 6f 6d 70 72 65 een the uncompre
1860: 73 73 65 64 20 61 6e 64 20 63 6f 6d 70 72 65 73 ssed and compres
1870: 73 65 64 20 73 69 7a 65 73 20 77 69 6c 6c 20 63 sed sizes will c
1880: 6f 72 72 65 73 70 6f 6e 64 20 74 6f 20 74 68 65 orrespond to the
1890: 20 3c 62 3e 63 6f 6d 70 72 65 73 73 69 6f 6e 20 <b>compression
18a0: 72 61 74 69 6f 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0d ratio</b>.</li>.
18b0: 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 74 69 6d 65 .<li>the <b>time
18c0: 3c 2f 62 3e 20 72 65 71 75 69 72 65 64 20 74 6f </b> required to
18d0: 20 3c 62 3e 63 6f 6d 70 72 65 73 73 3c 2f 62 3e <b>compress</b>
18e0: 20 74 68 65 20 6f 72 69 67 69 6e 61 6c 20 64 61 the original da
18f0: 74 61 73 65 74 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 taset.</li>..<li
1900: 3e 74 68 65 20 3c 62 3e 74 69 6d 65 3c 2f 62 3e >the <b>time</b>
1910: 20 72 65 71 75 69 72 65 64 20 74 6f 20 3c 62 3e required to <b>
1920: 64 65 63 6f 6d 70 72 65 73 73 3c 2f 62 3e 20 74 decompress</b> t
1930: 68 65 20 63 6f 6d 70 72 65 73 73 65 64 20 66 69 he compressed fi
1940: 6c 65 20 73 6f 20 74 6f 20 72 65 63 6f 76 65 72 le so to recover
1950: 20 74 68 65 20 69 6e 69 74 69 61 6c 20 75 6e 63 the initial unc
1960: 6f 6d 70 72 65 73 73 65 64 20 64 61 74 61 73 65 ompressed datase
1970: 74 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a t.</li>..</ul>..
1980: 3c 62 72 3e 0d 0a 3c 62 3e 4e 6f 74 65 3c 2f 62 <br>..<b>Note</b
1990: 3e 3a 20 63 6f 6d 70 72 65 73 73 69 6e 67 20 69 >: compressing i
19a0: 73 20 61 20 6d 75 63 68 20 68 61 72 64 65 72 20 s a much harder
19b0: 6f 70 65 72 61 74 69 6f 6e 20 74 68 61 6e 20 64 operation than d
19c0: 65 63 6f 6d 70 72 65 73 73 69 6e 67 2c 20 61 6e ecompressing, an
19d0: 64 20 77 69 6c 6c 20 61 6c 77 61 79 73 20 72 65 d will always re
19e0: 71 75 69 72 65 20 6d 6f 72 65 20 74 69 6d 65 2e quire more time.
19f0: 3c 62 72 3e 0d 0a 54 68 65 20 73 70 65 65 64 20 <br>..The speed
1a00: 64 69 66 66 65 72 65 6e 63 65 73 20 62 65 74 77 differences betw
1a10: 65 65 6e 20 74 68 65 20 76 61 72 69 6f 75 73 20 een the various
1a20: 63 6f 6d 70 72 65 73 73 69 6f 6e 20 61 6c 67 6f compression algo
1a30: 72 69 74 68 6d 73 20 77 69 6c 6c 20 62 65 20 73 rithms will be s
1a40: 74 72 6f 6e 67 20 61 6e 64 20 77 65 6c 6c 20 6d trong and well m
1a50: 61 72 6b 65 64 20 77 68 65 6e 20 63 6f 6d 70 72 arked when compr
1a60: 65 73 73 69 6e 67 2c 20 62 75 74 20 61 6c 73 6f essing, but also
1a70: 20 74 68 65 20 64 69 66 66 65 72 65 6e 63 65 73 the differences
1a80: 20 69 6e 20 64 65 63 6f 6d 70 72 65 73 73 69 6f in decompressio
1a90: 6e 20 73 70 65 65 64 73 20 28 61 6c 74 68 6f 75 n speeds (althou
1aa0: 67 68 20 6c 65 73 73 20 69 6d 70 72 65 73 73 69 gh less impressi
1ab0: 76 65 29 20 61 72 65 20 77 6f 72 74 68 20 74 6f ve) are worth to
1ac0: 20 62 65 20 63 61 72 65 66 75 6c 6c 79 20 65 76 be carefully ev
1ad0: 61 6c 75 61 74 65 64 2e 0d 0a 3c 75 6c 3e 0d 0a aluated...<ul>..
1ae0: 3c 6c 69 3e 66 6f 72 20 61 6e 79 20 63 6f 6d 70 <li>for any comp
1af0: 72 65 73 73 69 6f 6e 20 61 6c 67 6f 72 69 74 68 ression algorith
1b00: 6d 20 62 65 69 6e 67 20 73 6c 6f 77 20 28 6f 72 m being slow (or
1b10: 20 65 76 65 6e 20 76 65 72 79 20 73 6c 6f 77 29 even very slow)
1b20: 20 77 68 65 6e 20 63 6f 6d 70 72 65 73 73 69 6e when compressin
1b30: 67 20 63 61 6e 20 62 65 20 65 61 73 69 6c 79 20 g can be easily
1b40: 63 6f 6e 73 69 64 65 72 65 64 20 61 20 74 72 69 considered a tri
1b50: 76 69 61 6c 20 61 6e 64 20 66 6f 72 67 69 76 61 vial and forgiva
1b60: 62 6c 65 20 69 73 73 75 65 2e 3c 62 72 3e 0d 0a ble issue.<br>..
1b70: 43 6f 6d 70 72 65 73 73 69 6f 6e 20 75 73 75 61 Compression usua
1b80: 6c 6c 79 20 68 61 70 70 65 6e 73 20 6f 6e 6c 79 lly happens only
1b90: 20 6f 6e 63 65 20 69 6e 20 74 68 65 20 6c 69 66 once in the lif
1ba0: 65 74 69 6d 65 20 6f 66 20 61 20 63 6f 6d 70 72 etime of a compr
1bb0: 65 73 73 65 64 20 64 61 74 61 73 65 74 2c 20 61 essed dataset, a
1bc0: 6e 64 20 74 68 65 72 65 20 61 72 65 20 6d 61 6e nd there are man
1bd0: 79 20 77 61 79 73 20 66 6f 72 20 6d 69 6e 69 6d y ways for minim
1be0: 69 7a 69 6e 67 20 74 68 65 20 61 64 76 65 72 73 izing the advers
1bf0: 65 20 65 66 66 65 63 74 73 20 6f 66 20 69 6e 74 e effects of int
1c00: 72 69 6e 73 69 63 20 73 6c 6f 77 6e 65 73 73 2e rinsic slowness.
1c10: 3c 62 72 3e 0d 0a 59 6f 75 20 63 6f 75 6c 64 20 <br>..You could
1c20: 65 2e 67 2e 20 63 6f 6d 70 72 65 73 73 20 79 6f e.g. compress yo
1c30: 75 72 20 66 69 6c 65 73 20 69 6e 20 62 61 74 63 ur files in batc
1c40: 68 20 6d 6f 64 65 2c 20 6d 61 79 20 62 65 20 64 h mode, may be d
1c50: 75 72 69 6e 67 20 6f 66 66 2d 70 65 61 6b 20 68 uring off-peak h
1c60: 6f 75 72 73 2c 20 61 6e 64 20 69 6e 20 73 75 63 ours, and in suc
1c70: 68 20 61 20 73 63 65 6e 61 72 69 6f 20 72 65 61 h a scenario rea
1c80: 63 68 69 6e 67 20 73 74 72 6f 6e 67 65 72 20 63 ching stronger c
1c90: 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f ompression ratio
1ca0: 73 20 63 6f 75 6c 64 20 65 61 73 69 6c 79 20 6a s could easily j
1cb0: 75 73 74 69 66 79 20 61 20 6c 6f 6e 67 65 72 20 ustify a longer
1cc0: 70 72 6f 63 65 73 73 20 74 69 6d 65 2e 3c 62 72 process time.<br
1cd0: 3e 0d 0a 4f 72 20 61 6c 74 65 72 6e 61 74 69 76 >..Or alternativ
1ce0: 65 6c 79 20 79 6f 75 20 63 6f 75 6c 64 20 65 6e ely you could en
1cf0: 61 62 6c 65 20 28 69 66 20 70 6f 73 73 69 62 6c able (if possibl
1d00: 65 29 20 61 20 6d 75 6c 74 69 74 68 72 65 61 64 e) a multithread
1d10: 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 61 70 70 compression app
1d20: 72 6f 61 63 68 20 28 70 61 72 61 6c 6c 65 6c 20 roach (parallel
1d30: 70 72 6f 63 65 73 73 69 6e 67 29 2c 20 73 6f 20 processing), so
1d40: 74 6f 20 73 69 67 6e 69 66 69 63 61 6e 74 6c 79 to significantly
1d50: 20 72 65 64 75 63 65 20 74 68 65 20 72 65 71 75 reduce the requ
1d60: 69 72 65 64 20 74 69 6d 65 2e 3c 2f 6c 69 3e 0d ired time.</li>.
1d70: 0a 3c 6c 69 3e 62 65 69 6e 67 20 73 6c 6f 77 20 .<li>being slow
1d80: 77 68 65 6e 20 64 65 63 6f 6d 70 72 65 73 73 69 when decompressi
1d90: 6e 67 20 69 73 20 61 20 6d 75 63 68 20 6d 6f 72 ng is a much mor
1da0: 65 20 73 65 72 69 6f 75 73 20 69 73 73 75 65 2c e serious issue,
1db0: 20 62 65 63 61 75 73 65 20 64 65 63 6f 6d 70 72 because decompr
1dc0: 65 73 73 69 6f 6e 20 77 69 6c 6c 20 68 61 70 70 ession will happ
1dd0: 65 6e 20 6d 6f 72 65 20 66 72 65 71 75 65 6e 74 en more frequent
1de0: 6c 79 3b 20 76 65 72 79 20 66 72 65 71 75 65 6e ly; very frequen
1df0: 74 6c 79 20 69 6e 20 73 6f 6d 65 20 73 70 65 63 tly in some spec
1e00: 69 66 69 63 20 73 63 65 6e 61 72 69 6f 2e 3c 62 ific scenario.<b
1e10: 72 3e 0d 0a 53 6f 20 61 20 63 65 72 74 61 69 6e r>..So a certain
1e20: 20 64 65 67 72 65 65 20 6f 66 20 73 6c 6f 77 6e degree of slown
1e30: 65 73 73 20 69 6e 20 64 65 63 6f 6d 70 72 65 73 ess in decompres
1e40: 73 69 6f 6e 20 63 6f 75 6c 64 20 65 61 73 69 6c sion could easil
1e50: 79 20 62 65 63 6f 6d 65 20 61 20 73 65 72 69 6f y become a serio
1e60: 75 73 20 62 6f 74 74 6c 65 6e 65 63 6b 20 73 65 us bottleneck se
1e70: 76 65 72 65 6c 79 20 6c 69 6d 69 74 69 6e 67 20 verely limiting
1e80: 74 68 65 20 6f 76 65 72 61 6c 6c 20 70 65 72 66 the overall perf
1e90: 6f 72 6d 61 6e 63 65 73 20 6f 66 20 79 6f 75 72 ormances of your
1ea0: 20 73 79 73 74 65 6d 2e 3c 2f 6c 69 3e 0d 0a 3c system.</li>..<
1eb0: 2f 75 6c 3e 0d 0a 3c 68 33 3e 74 65 73 74 20 23 /ul>..<h3>test #
1ec0: 31 20 2d 20 63 6f 6d 70 72 65 73 73 69 6e 67 20 1 - compressing
1ed0: 6d 61 6e 79 20 43 53 56 20 66 69 6c 65 73 3c 2f many CSV files</
1ee0: 68 33 3e 0d 0a 3c 74 61 62 6c 65 20 63 65 6c 6c h3>..<table cell
1ef0: 73 70 61 63 69 6e 67 3d 22 36 22 20 63 65 6c 6c spacing="6" cell
1f00: 70 61 64 64 69 6e 67 3d 22 38 22 20 62 6f 72 64 padding="8" bord
1f10: 65 72 3d 22 31 22 20 62 67 63 6f 6c 6f 72 3d 22 er="1" bgcolor="
1f20: 23 66 66 66 66 65 30 22 3e 0d 0a 3c 74 72 3e 3c #ffffe0">..<tr><
1f30: 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 th bgcolor="#d0f
1f40: 66 39 30 22 3e 55 6e 63 6f 6d 70 72 65 73 73 65 f90">Uncompresse
1f50: 64 20 53 69 7a 65 3c 2f 74 68 3e 3c 74 68 20 62 d Size</th><th b
1f60: 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 gcolor="#d0ff90"
1f70: 3e 41 6c 67 6f 72 69 74 68 6d 3c 2f 74 68 3e 3c >Algorithm</th><
1f80: 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 th bgcolor="#d0f
1f90: 66 39 30 22 3e 43 6f 6d 70 72 65 73 73 65 64 20 f90">Compressed
1fa0: 53 69 7a 65 3c 2f 74 68 3e 0d 0a 09 3c 74 68 20 Size</th>...<th
1fb0: 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 bgcolor="#d0ff90
1fc0: 22 3e 43 6f 6d 70 72 65 73 73 69 6f 6e 20 52 61 ">Compression Ra
1fd0: 74 69 6f 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f tio</th><th bgco
1fe0: 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 43 6f lor="#d0ff90">Co
1ff0: 6d 70 72 65 73 73 69 6f 6e 20 54 69 6d 65 3c 2f mpression Time</
2000: 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 th><th bgcolor="
2010: 23 64 30 66 66 39 30 22 3e 44 65 63 6f 6d 70 72 #d0ff90">Decompr
2020: 65 73 73 69 6f 6e 20 54 69 6d 65 3c 2f 74 68 3e ession Time</th>
2030: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 </tr>..<tr>...<t
2040: 68 20 72 6f 77 73 70 61 6e 3d 22 34 22 20 61 6c h rowspan="4" al
2050: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 30 2e 39 ign="center">0.9
2060: 37 20 47 42 3c 2f 74 64 3e 0d 0a 09 3c 74 64 20 7 GB</td>...<td
2070: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 4c align="center">L
2080: 5a 34 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e Z4</td><td align
2090: 3d 22 72 69 67 68 74 22 3e 32 38 39 20 4d 42 3c ="right">289 MB<
20a0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
20b0: 65 6e 74 65 72 22 3e 33 2e 34 36 3c 2f 74 64 3e enter">3.46</td>
20c0: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 <td align="right
20d0: 22 3e 36 2e 35 35 30 20 73 65 63 3c 2f 74 64 3e ">6.550 sec</td>
20e0: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 <td align="right
20f0: 22 3e 32 2e 32 35 36 20 73 65 63 3c 2f 74 64 3e ">2.256 sec</td>
2100: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63 ..</tr>..<tr bgc
2110: 6f 6c 6f 72 3d 22 23 64 66 64 64 63 30 22 3e 0d olor="#dfddc0">.
2120: 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e ..<td align="cen
2130: 74 65 72 22 3e 44 45 46 4c 41 54 45 3c 2f 74 64 ter">DEFLATE</td
2140: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 ><td align="righ
2150: 74 22 3e 31 35 35 20 4d 42 3c 2f 74 64 3e 3c 74 t">155 MB</td><t
2160: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
2170: 3e 36 2e 34 34 3c 2f 74 64 3e 3c 74 64 20 61 6c >6.44</td><td al
2180: 69 67 6e 3d 22 72 69 67 68 74 22 3e 33 33 2e 30 ign="right">33.0
2190: 37 39 20 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 79 sec</td><td a
21a0: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 32 2e 31 lign="right">2.1
21b0: 35 39 20 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 59 sec</td>..</t
21c0: 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20 61 r>..<tr>...<td a
21d0: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 5a 53 lign="center">ZS
21e0: 54 44 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e TD</td><td align
21f0: 3d 22 72 69 67 68 74 22 3e 31 31 30 20 4d 42 3c ="right">110 MB<
2200: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
2210: 65 6e 74 65 72 22 3e 39 2e 30 39 3c 2f 74 64 3e enter">9.09</td>
2220: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 <td align="right
2230: 22 3e 32 2e 39 32 34 20 73 65 63 3c 2f 74 64 3e ">2.924 sec</td>
2240: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 <td align="right
2250: 22 3e 31 2e 33 31 33 20 73 65 63 3c 2f 74 64 3e ">1.313 sec</td>
2260: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63 ..</tr>..<tr bgc
2270: 6f 6c 6f 72 3d 22 23 64 66 64 64 63 30 22 3e 0d olor="#dfddc0">.
2280: 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e ..<td align="cen
2290: 74 65 72 22 3e 4c 5a 4d 41 3c 2f 74 64 3e 3c 74 ter">LZMA</td><t
22a0: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e d align="right">
22b0: 34 37 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 47 MB</td><td al
22c0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 32 31 2e ign="center">21.
22d0: 34 32 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 42</td><td align
22e0: 3d 22 72 69 67 68 74 22 3e 31 32 32 30 2e 33 32 ="right">1220.32
22f0: 39 20 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 9 sec</td><td al
2300: 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 30 2e 31 ign="right">10.1
2310: 37 39 20 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 79 sec</td>..</t
2320: 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a 3c 62 r>..</table>..<b
2330: 3e 51 75 69 63 6b 20 61 73 73 65 73 73 6d 65 6e >Quick assessmen
2340: 74 3a 3c 2f 62 3e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c t:</b>..<ul>..<l
2350: 69 3e 54 68 65 20 73 61 6d 70 6c 65 20 77 61 73 i>The sample was
2360: 20 61 20 74 61 72 62 61 6c 6c 20 63 6f 6e 74 61 a tarball conta
2370: 69 6e 69 6e 67 20 61 20 77 68 6f 6c 65 20 3c 61 ining a whole <a
2380: 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 65 href="https://e
2390: 6e 2e 77 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f n.wikipedia.org/
23a0: 77 69 6b 69 2f 47 65 6e 65 72 61 6c 5f 54 72 61 wiki/General_Tra
23b0: 6e 73 69 74 5f 46 65 65 64 5f 53 70 65 63 69 66 nsit_Feed_Specif
23c0: 69 63 61 74 69 6f 6e 22 3e 47 54 46 53 3c 2f 61 ication">GTFS</a
23d0: 3e 20 64 61 74 61 73 65 74 2e 3c 2f 6c 69 3e 0d > dataset.</li>.
23e0: 0a 3c 6c 69 3e 54 65 78 74 20 66 69 6c 65 73 20 .<li>Text files
23f0: 61 72 65 20 75 73 75 61 6c 6c 79 20 65 78 70 65 are usually expe
2400: 63 74 65 64 20 74 6f 20 62 65 20 68 69 67 68 6c cted to be highl
2410: 79 20 63 6f 6d 70 72 65 73 73 69 62 6c 65 20 28 y compressible (
2420: 73 6f 20 6d 61 6e 79 20 72 65 70 65 74 69 74 69 so many repetiti
2430: 6f 6e 73 20 6f 66 20 74 68 65 20 73 61 6d 65 20 ons of the same
2440: 77 6f 72 6c 64 73 20 61 6e 64 20 76 61 6c 75 65 worlds and value
2450: 73 29 2c 20 61 6e 64 20 74 68 69 73 20 74 65 73 s), and this tes
2460: 74 20 63 6f 6e 66 69 72 6d 73 20 74 68 65 20 65 t confirms the e
2470: 78 70 65 63 74 61 74 69 6f 6e 73 2e 3c 2f 6c 69 xpectations.</li
2480: 3e 0d 0a 3c 6c 69 3e 3c 62 3e 4c 5a 34 3c 2f 62 >..<li><b>LZ4</b
2490: 3e 20 69 73 20 76 65 72 79 20 66 61 73 74 20 62 > is very fast b
24a0: 6f 74 68 20 77 68 65 6e 20 63 6f 6d 70 72 65 73 oth when compres
24b0: 73 69 6e 67 20 61 6e 64 20 64 65 63 6f 6d 70 72 sing and decompr
24c0: 65 73 73 69 6e 67 2c 20 62 75 74 20 74 68 65 20 essing, but the
24d0: 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 compression rati
24e0: 6f 20 69 73 20 72 61 74 68 65 72 20 64 69 73 61 o is rather disa
24f0: 70 70 6f 69 6e 74 69 6e 67 2e 3c 2f 6c 69 3e 0d ppointing.</li>.
2500: 0a 3c 6c 69 3e 3c 62 3e 44 45 46 4c 41 54 45 3c .<li><b>DEFLATE<
2510: 2f 62 3e 20 69 73 20 61 20 76 65 72 79 20 65 66 /b> is a very ef
2520: 66 65 63 74 69 76 65 20 61 6e 64 20 77 65 6c 6c fective and well
2530: 20 62 61 6c 61 6e 63 65 64 20 63 6f 6d 70 72 6f balanced compro
2540: 6d 69 73 65 20 62 65 74 77 65 65 6e 20 73 70 65 mise between spe
2550: 65 64 20 61 6e 64 20 65 66 66 65 63 74 69 76 65 ed and effective
2560: 6e 65 73 73 2e 3c 62 72 3e 0d 0a 49 74 20 73 63 ness.<br>..It sc
2570: 6f 72 65 73 20 61 20 64 65 63 65 6e 74 20 63 6f ores a decent co
2580: 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f 20 mpression ratio
2590: 61 6e 64 20 69 74 27 73 20 66 61 73 74 20 65 6e and it's fast en
25a0: 6f 75 67 68 20 62 6f 74 68 20 77 68 65 6e 20 63 ough both when c
25b0: 6f 6d 70 72 65 73 73 69 6e 67 20 61 6e 64 20 64 ompressing and d
25c0: 65 63 6f 6d 70 72 65 73 73 69 6e 67 2e 3c 2f 6c ecompressing.</l
25d0: 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 5a 53 54 44 3c i>..<li><b>ZSTD<
25e0: 2f 62 3e 20 63 6c 65 61 72 6c 79 20 77 69 6e 73 /b> clearly wins
25f0: 20 74 68 69 73 20 66 69 72 73 74 20 6d 61 74 63 this first matc
2600: 68 20 68 61 6e 64 73 20 64 6f 77 6e 3b 20 69 74 h hands down; it
2610: 27 73 20 69 6d 70 72 65 73 73 69 76 65 6c 79 20 's impressively
2620: 66 61 73 74 20 28 69 6e 20 62 6f 74 68 20 64 69 fast (in both di
2630: 72 65 63 74 69 6f 6e 73 29 20 61 6e 64 20 69 74 rections) and it
2640: 20 73 63 6f 72 65 73 20 61 20 76 65 72 79 20 67 scores a very g
2650: 6f 6f 64 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 ood compression
2660: 72 61 74 69 6f 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 ratio.</li>..<li
2670: 3e 3c 62 3e 4c 5a 4d 41 3c 2f 62 3e 20 73 63 6f ><b>LZMA</b> sco
2680: 72 65 73 20 61 20 72 65 61 6c 6c 79 20 69 6d 70 res a really imp
2690: 72 65 73 73 69 76 65 20 63 6f 6d 70 72 65 73 73 ressive compress
26a0: 69 76 65 20 72 61 74 69 6f 2c 20 62 75 74 20 69 ive ratio, but i
26b0: 74 27 73 20 64 65 61 64 6c 79 20 73 6c 6f 77 20 t's deadly slow
26c0: 77 68 65 6e 20 63 6f 6d 70 72 65 73 73 69 6e 67 when compressing
26d0: 20 28 6d 6f 72 65 20 74 68 61 6e 20 31 30 20 74 (more than 10 t
26e0: 69 6d 65 73 20 73 6c 6f 77 65 72 20 74 68 61 6e imes slower than
26f0: 20 44 45 46 4c 41 54 45 29 2e 3c 62 72 3e 0d 0a DEFLATE).<br>..
2700: 42 75 74 20 77 68 61 74 27 73 20 72 65 61 6c 6c But what's reall
2710: 79 20 62 61 64 20 69 73 20 74 68 61 74 20 69 74 y bad is that it
2720: 27 73 20 73 6c 6f 77 20 65 76 65 6e 20 77 68 65 's slow even whe
2730: 6e 20 64 65 63 6f 6d 70 72 65 73 73 69 6e 67 20 n decompressing
2740: 28 61 62 6f 75 74 20 35 20 74 69 6d 65 73 20 73 (about 5 times s
2750: 6c 6f 77 65 72 20 74 68 61 6e 20 44 45 46 4c 41 lower than DEFLA
2760: 54 45 29 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e TE).</li>..</ul>
2770: 0d 0a 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 68 33 3e ..<br><br>..<h3>
2780: 74 65 73 74 20 23 32 20 2d 20 63 6f 6d 70 72 65 test #2 - compre
2790: 73 73 69 6e 67 20 61 20 53 51 4c 69 74 65 20 64 ssing a SQLite d
27a0: 61 74 61 62 61 73 65 20 66 69 6c 65 3c 2f 68 33 atabase file</h3
27b0: 3e 0d 0a 3c 74 61 62 6c 65 20 63 65 6c 6c 73 70 >..<table cellsp
27c0: 61 63 69 6e 67 3d 22 36 22 20 63 65 6c 6c 70 61 acing="6" cellpa
27d0: 64 64 69 6e 67 3d 22 38 22 20 62 6f 72 64 65 72 dding="8" border
27e0: 3d 22 31 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 ="1" bgcolor="#f
27f0: 66 66 66 65 30 22 3e 0d 0a 3c 74 72 3e 3c 74 68 fffe0">..<tr><th
2800: 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 bgcolor="#d0ff9
2810: 30 22 3e 55 6e 63 6f 6d 70 72 65 73 73 65 64 20 0">Uncompressed
2820: 53 69 7a 65 3c 2f 74 68 3e 3c 74 68 20 62 67 63 Size</th><th bgc
2830: 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 41 olor="#d0ff90">A
2840: 6c 67 6f 72 69 74 68 6d 3c 2f 74 68 3e 3c 74 68 lgorithm</th><th
2850: 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 bgcolor="#d0ff9
2860: 30 22 3e 43 6f 6d 70 72 65 73 73 65 64 20 53 69 0">Compressed Si
2870: 7a 65 3c 2f 74 68 3e 0d 0a 09 3c 74 68 20 62 67 ze</th>...<th bg
2880: 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e color="#d0ff90">
2890: 43 6f 6d 70 72 65 73 73 69 6f 6e 20 52 61 74 69 Compression Rati
28a0: 6f 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f o</th><th bgcolo
28b0: 72 3d 22 23 64 30 66 66 39 30 22 3e 43 6f 6d 70 r="#d0ff90">Comp
28c0: 72 65 73 73 69 6f 6e 20 54 69 6d 65 3c 2f 74 68 ression Time</th
28d0: 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 ><th bgcolor="#d
28e0: 30 66 66 39 30 22 3e 44 65 63 6f 6d 70 72 65 73 0ff90">Decompres
28f0: 73 69 6f 6e 20 54 69 6d 65 3c 2f 74 68 3e 3c 2f sion Time</th></
2900: 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 68 20 tr>..<tr>...<th
2910: 72 6f 77 73 70 61 6e 3d 22 34 22 20 61 6c 69 67 rowspan="4" alig
2920: 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e 31 33 20 n="center">1.13
2930: 47 42 3c 2f 74 64 3e 0d 0a 09 3c 74 64 20 61 6c GB</td>...<td al
2940: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 4c 5a 34 ign="center">LZ4
2950: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
2960: 72 69 67 68 74 22 3e 35 30 38 20 4d 42 3c 2f 74 right">508 MB</t
2970: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
2980: 74 65 72 22 3e 32 2e 32 39 3c 2f 74 64 3e 3c 74 ter">2.29</td><t
2990: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e d align="right">
29a0: 31 30 2e 33 33 33 20 73 65 63 3c 2f 74 64 3e 3c 10.333 sec</td><
29b0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
29c0: 3e 32 2e 31 32 33 20 73 65 63 3c 2f 74 64 3e 0d >2.123 sec</td>.
29d0: 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63 6f .</tr>..<tr bgco
29e0: 6c 6f 72 3d 22 23 64 66 64 64 63 30 22 3e 0d 0a lor="#dfddc0">..
29f0: 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 .<td align="cent
2a00: 65 72 22 3e 44 45 46 4c 41 54 45 3c 2f 74 64 3e er">DEFLATE</td>
2a10: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 <td align="right
2a20: 22 3e 33 32 33 20 4d 42 3c 2f 74 64 3e 3c 74 64 ">323 MB</td><td
2a30: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
2a40: 33 2e 36 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 3.60</td><td ali
2a50: 67 6e 3d 22 72 69 67 68 74 22 3e 35 34 2e 33 34 gn="right">54.34
2a60: 33 20 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 3 sec</td><td al
2a70: 69 67 6e 3d 22 72 69 67 68 74 22 3e 33 2e 31 37 ign="right">3.17
2a80: 33 20 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3 sec</td>..</tr
2a90: 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20 61 6c >..<tr>...<td al
2aa0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 5a 53 54 ign="center">ZST
2ab0: 44 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d D</td><td align=
2ac0: 22 72 69 67 68 74 22 3e 32 31 39 20 4d 42 3c 2f "right">219 MB</
2ad0: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
2ae0: 6e 74 65 72 22 3e 35 2e 33 31 3c 2f 74 64 3e 3c nter">5.31</td><
2af0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
2b00: 3e 34 2e 33 33 31 20 73 65 63 3c 2f 74 64 3e 3c >4.331 sec</td><
2b10: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
2b20: 3e 31 2e 35 32 32 20 73 65 63 3c 2f 74 64 3e 0d >1.522 sec</td>.
2b30: 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63 6f .</tr>..<tr bgco
2b40: 6c 6f 72 3d 22 23 64 66 64 64 63 30 22 3e 0d 0a lor="#dfddc0">..
2b50: 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 .<td align="cent
2b60: 65 72 22 3e 4c 5a 4d 41 3c 2f 74 64 3e 3c 74 64 er">LZMA</td><td
2b70: 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 38 align="right">8
2b80: 32 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 2 MB</td><td ali
2b90: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 34 2e 32 gn="center">14.2
2ba0: 36 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 6</td><td align=
2bb0: 22 72 69 67 68 74 22 3e 36 34 36 2e 36 37 30 20 "right">646.670
2bc0: 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 sec</td><td alig
2bd0: 6e 3d 22 72 69 67 68 74 22 3e 31 37 2e 39 33 30 n="right">17.930
2be0: 20 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e sec</td>..</tr>
2bf0: 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a 3c 62 3e 51 ..</table>..<b>Q
2c00: 75 69 63 6b 20 61 73 73 65 73 73 6d 65 6e 74 3a uick assessment:
2c10: 3c 2f 62 3e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e </b>..<ul>..<li>
2c20: 54 68 65 20 73 61 6d 70 6c 65 20 77 61 73 20 61 The sample was a
2c30: 20 53 51 4c 69 74 65 2f 53 70 61 74 69 61 4c 69 SQLite/SpatiaLi
2c40: 74 65 20 64 61 74 61 62 61 73 65 20 63 6f 6e 74 te database cont
2c50: 61 69 6e 69 6e 67 20 74 68 65 20 73 61 6d 65 20 aining the same
2c60: 47 54 46 53 3c 2f 61 3e 20 64 61 74 61 73 65 74 GTFS</a> dataset
2c70: 20 75 73 65 64 20 69 6e 20 74 68 65 20 70 72 65 used in the pre
2c80: 76 69 6f 75 73 20 74 65 73 74 2e 3c 2f 6c 69 3e vious test.</li>
2c90: 0d 0a 3c 6c 69 3e 44 61 74 61 62 61 73 65 73 20 ..<li>Databases
2ca0: 61 72 65 20 75 73 75 61 6c 6c 79 20 65 78 70 65 are usually expe
2cb0: 63 74 65 64 20 74 6f 20 62 65 20 73 74 72 6f 6e cted to be stron
2cc0: 67 6c 79 20 63 6f 6d 70 72 65 73 73 69 62 6c 65 gly compressible
2cd0: 20 28 73 6f 20 6d 61 6e 79 20 72 65 70 65 74 69 (so many repeti
2ce0: 74 69 6f 6e 73 20 6f 66 20 5a 45 52 4f 2c 20 53 tions of ZERO, S
2cf0: 50 41 43 45 20 61 6e 64 20 4e 55 4c 4c 20 76 61 PACE and NULL va
2d00: 6c 75 65 73 29 2c 20 61 6e 64 20 74 68 69 73 20 lues), and this
2d10: 74 65 73 74 20 63 6f 6e 66 69 72 6d 73 20 74 68 test confirms th
2d20: 65 20 65 78 70 65 63 74 61 74 69 6f 6e 73 2e 3c e expectations.<
2d30: 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 4c 5a 34 /li>..<li><b>LZ4
2d40: 3c 2f 62 3e 20 63 6f 6e 66 69 72 6d 73 20 74 6f </b> confirms to
2d50: 20 62 65 20 76 65 72 79 20 66 61 73 74 20 62 75 be very fast bu
2d60: 74 20 6e 6f 74 20 76 65 72 79 20 65 66 66 65 63 t not very effec
2d70: 74 69 76 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e tive.</li>..<li>
2d80: 3c 62 3e 44 45 46 4c 41 54 45 3c 2f 62 3e 20 63 <b>DEFLATE</b> c
2d90: 6f 6e 66 69 72 6d 73 20 74 6f 20 62 65 20 73 74 onfirms to be st
2da0: 69 6c 6c 20 76 61 6c 69 64 20 64 65 73 70 69 74 ill valid despit
2db0: 65 20 69 74 73 20 76 65 6e 65 72 61 62 6c 65 20 e its venerable
2dc0: 61 67 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c age.</li>..<li><
2dd0: 62 3e 5a 53 54 44 3c 2f 62 3e 20 69 73 20 6f 6e b>ZSTD</b> is on
2de0: 63 65 20 6d 6f 72 65 20 74 68 65 20 77 69 6e 6e ce more the winn
2df0: 65 72 20 6f 66 20 74 68 69 73 20 74 65 73 74 2c er of this test,
2e00: 20 62 65 69 6e 67 20 62 6f 74 68 20 66 61 73 74 being both fast
2e10: 20 61 6e 64 20 65 66 66 65 63 74 69 76 65 2e 3c and effective.<
2e20: 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 4c 5a 4d /li>..<li><b>LZM
2e30: 41 3c 2f 62 3e 20 63 6f 6e 66 69 72 6d 73 20 74 A</b> confirms t
2e40: 6f 20 62 65 20 75 6e 62 65 61 74 61 62 6c 65 20 o be unbeatable
2e50: 66 6f 72 20 72 65 61 63 68 69 6e 67 20 76 65 72 for reaching ver
2e60: 79 20 68 69 67 68 20 63 6f 6d 70 72 65 73 73 69 y high compressi
2e70: 6f 6e 20 72 61 74 69 6f 73 2c 20 62 75 74 20 75 on ratios, but u
2e80: 6e 68 61 70 70 69 6c 79 20 69 74 20 63 6f 6e 66 nhappily it conf
2e90: 69 72 6d 73 20 69 74 73 20 62 61 72 65 6c 79 20 irms its barely
2ea0: 74 6f 6c 65 72 61 62 6c 65 20 73 6c 6f 77 6e 65 tolerable slowne
2eb0: 73 73 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d ss.</li>..</ul>.
2ec0: 0a 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 68 33 3e 74 .<br><br>..<h3>t
2ed0: 65 73 74 20 23 33 20 2d 20 63 6f 6d 70 72 65 73 est #3 - compres
2ee0: 73 69 6e 67 20 6d 61 6e 79 20 53 68 61 70 65 66 sing many Shapef
2ef0: 69 6c 65 73 3c 2f 68 33 3e 0d 0a 3c 74 61 62 6c iles</h3>..<tabl
2f00: 65 20 63 65 6c 6c 73 70 61 63 69 6e 67 3d 22 36 e cellspacing="6
2f10: 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 38 " cellpadding="8
2f20: 22 20 62 6f 72 64 65 72 3d 22 31 22 20 62 67 63 " border="1" bgc
2f30: 6f 6c 6f 72 3d 22 23 66 66 66 66 65 30 22 3e 0d olor="#ffffe0">.
2f40: 0a 3c 74 72 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 .<tr><th bgcolor
2f50: 3d 22 23 64 30 66 66 39 30 22 3e 55 6e 63 6f 6d ="#d0ff90">Uncom
2f60: 70 72 65 73 73 65 64 20 53 69 7a 65 3c 2f 74 68 pressed Size</th
2f70: 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 ><th bgcolor="#d
2f80: 30 66 66 39 30 22 3e 41 6c 67 6f 72 69 74 68 6d 0ff90">Algorithm
2f90: 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 </th><th bgcolor
2fa0: 3d 22 23 64 30 66 66 39 30 22 3e 43 6f 6d 70 72 ="#d0ff90">Compr
2fb0: 65 73 73 65 64 20 53 69 7a 65 3c 2f 74 68 3e 0d essed Size</th>.
2fc0: 0a 09 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 ..<th bgcolor="#
2fd0: 64 30 66 66 39 30 22 3e 43 6f 6d 70 72 65 73 73 d0ff90">Compress
2fe0: 69 6f 6e 20 52 61 74 69 6f 3c 2f 74 68 3e 3c 74 ion Ratio</th><t
2ff0: 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 h bgcolor="#d0ff
3000: 39 30 22 3e 43 6f 6d 70 72 65 73 73 69 6f 6e 20 90">Compression
3010: 54 69 6d 65 3c 2f 74 68 3e 3c 74 68 20 62 67 63 Time</th><th bgc
3020: 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 44 olor="#d0ff90">D
3030: 65 63 6f 6d 70 72 65 73 73 69 6f 6e 20 54 69 6d ecompression Tim
3040: 65 3c 2f 74 68 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 e</th></tr>..<tr
3050: 3e 0d 0a 09 3c 74 68 20 72 6f 77 73 70 61 6e 3d >...<th rowspan=
3060: 22 34 22 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 "4" align="cente
3070: 72 22 3e 31 2e 31 39 20 47 42 3c 2f 74 64 3e 0d r">1.19 GB</td>.
3080: 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e ..<td align="cen
3090: 74 65 72 22 3e 4c 5a 34 3c 2f 74 64 3e 3c 74 64 ter">LZ4</td><td
30a0: 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 30 align="right">0
30b0: 2e 39 39 20 47 42 3c 2f 74 64 3e 3c 74 64 20 61 .99 GB</td><td a
30c0: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e lign="center">1.
30d0: 32 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 20</td><td align
30e0: 3d 22 72 69 67 68 74 22 3e 36 2e 34 31 33 20 73 ="right">6.413 s
30f0: 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e ec</td><td align
3100: 3d 22 72 69 67 68 74 22 3e 30 2e 38 39 33 20 73 ="right">0.893 s
3110: 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a ec</td>..</tr>..
3120: 3c 74 72 20 62 67 63 6f 6c 6f 72 3d 22 23 64 66 <tr bgcolor="#df
3130: 64 64 63 30 22 3e 0d 0a 09 3c 74 64 20 61 6c 69 ddc0">...<td ali
3140: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 44 45 46 4c gn="center">DEFL
3150: 41 54 45 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 ATE</td><td alig
3160: 6e 3d 22 72 69 67 68 74 22 3e 38 37 30 20 4d 42 n="right">870 MB
3170: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
3180: 63 65 6e 74 65 72 22 3e 31 2e 34 30 3c 2f 74 64 center">1.40</td
3190: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 ><td align="righ
31a0: 74 22 3e 34 38 2e 30 30 34 20 73 65 63 3c 2f 74 t">48.004 sec</t
31b0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 d><td align="rig
31c0: 68 74 22 3e 34 2e 35 35 33 20 73 65 63 3c 2f 74 ht">4.553 sec</t
31d0: 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d d>..</tr>..<tr>.
31e0: 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e ..<td align="cen
31f0: 74 65 72 22 3e 5a 53 54 44 3c 2f 74 64 3e 3c 74 ter">ZSTD</td><t
3200: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e d align="right">
3210: 38 38 30 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 880 MB</td><td a
3220: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e lign="center">1.
3230: 33 39 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 39</td><td align
3240: 3d 22 72 69 67 68 74 22 3e 35 2e 34 31 36 20 73 ="right">5.416 s
3250: 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e ec</td><td align
3260: 3d 22 72 69 67 68 74 22 3e 31 2e 32 39 32 20 73 ="right">1.292 s
3270: 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a ec</td>..</tr>..
3280: 3c 74 72 20 62 67 63 6f 6c 6f 72 3d 22 23 64 66 <tr bgcolor="#df
3290: 64 64 63 30 22 3e 0d 0a 09 3c 74 64 20 61 6c 69 ddc0">...<td ali
32a0: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 4c 5a 4d 41 gn="center">LZMA
32b0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
32c0: 72 69 67 68 74 22 3e 36 38 32 20 4d 42 3c 2f 74 right">682 MB</t
32d0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
32e0: 74 65 72 22 3e 31 2e 37 39 3c 2f 74 64 3e 3c 74 ter">1.79</td><t
32f0: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e d align="right">
3300: 37 34 30 2e 30 37 37 20 73 65 63 3c 2f 74 64 3e 740.077 sec</td>
3310: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 <td align="right
3320: 22 3e 34 35 2e 36 32 34 20 73 65 63 3c 2f 74 64 ">45.624 sec</td
3330: 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c >..</tr>..</tabl
3340: 65 3e 0d 0a 3c 62 3e 51 75 69 63 6b 20 61 73 73 e>..<b>Quick ass
3350: 65 73 73 6d 65 6e 74 3a 3c 2f 62 3e 0d 0a 3c 75 essment:</b>..<u
3360: 6c 3e 0d 0a 3c 6c 69 3e 54 68 65 20 73 61 6d 70 l>..<li>The samp
3370: 6c 65 20 77 61 73 20 61 20 74 61 72 62 61 6c 6c le was a tarball
3380: 20 63 6f 6e 74 61 69 6e 69 6e 67 20 73 65 76 65 containing seve
3390: 72 61 6c 20 53 68 61 70 65 66 69 6c 65 73 20 28 ral Shapefiles (
33a0: 52 6f 61 64 20 4e 65 74 77 6f 72 6b 20 61 6e 64 Road Network and
33b0: 20 41 64 6d 69 6e 69 73 74 72 61 74 69 76 65 20 Administrative
33c0: 42 6f 75 6e 64 61 72 69 65 73 20 6f 66 20 54 75 Boundaries of Tu
33d0: 73 63 61 6e 79 29 2e 3c 2f 6c 69 3e 0d 0a 3c 6c scany).</li>..<l
33e0: 69 3e 53 68 61 70 65 66 69 6c 65 73 20 63 6f 6e i>Shapefiles con
33f0: 74 61 69 6e 20 70 6c 65 6e 74 79 20 6f 66 20 72 tain plenty of r
3400: 61 77 20 62 69 6e 61 72 79 20 64 61 74 61 2c 20 aw binary data,
3410: 61 6e 64 20 63 6f 6e 73 65 71 75 65 6e 74 6c 79 and consequently
3420: 20 61 72 65 20 72 61 74 68 65 72 20 68 61 72 64 are rather hard
3430: 20 74 6f 20 62 65 20 73 74 72 6f 6e 67 6c 79 20 to be strongly
3440: 63 6f 6d 70 72 65 73 73 65 64 2e 3c 62 72 3e 0d compressed.<br>.
3450: 0a 54 68 69 73 20 66 75 6c 6c 79 20 65 78 70 6c .This fully expl
3460: 61 69 6e 73 20 77 68 79 20 69 6e 20 74 68 69 73 ains why in this
3470: 20 73 70 65 63 69 66 69 63 20 74 65 73 74 20 74 specific test t
3480: 68 65 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 he compression r
3490: 61 74 69 6f 73 20 61 72 65 20 61 6c 77 61 79 73 atios are always
34a0: 20 76 65 72 79 20 62 6c 61 6e 64 2e 3c 2f 6c 69 very bland.</li
34b0: 3e 0d 0a 3c 6c 69 3e 3c 62 3e 4c 5a 34 3c 2f 62 >..<li><b>LZ4</b
34c0: 3e 20 63 6f 6e 66 69 72 6d 73 20 74 6f 20 62 65 > confirms to be
34d0: 20 76 65 72 79 20 66 61 73 74 20 62 75 74 20 6e very fast but n
34e0: 6f 74 20 76 65 72 79 20 65 66 66 65 63 74 69 76 ot very effectiv
34f0: 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e e.</li>..<li><b>
3500: 44 45 46 4c 41 54 45 3c 2f 62 3e 20 63 6f 6e 66 DEFLATE</b> conf
3510: 69 72 6d 73 20 74 6f 20 62 65 20 73 74 69 6c 6c irms to be still
3520: 20 76 61 6c 69 64 20 64 65 73 70 69 74 65 20 69 valid despite i
3530: 74 73 20 76 65 6e 65 72 61 62 6c 65 20 61 67 65 ts venerable age
3540: 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 5a .</li>..<li><b>Z
3550: 53 54 44 3c 2f 62 3e 20 69 73 20 6f 6e 63 65 20 STD</b> is once
3560: 6d 6f 72 65 20 74 68 65 20 77 69 6e 6e 65 72 20 more the winner
3570: 6f 66 20 74 68 69 73 20 74 65 73 74 2c 20 62 65 of this test, be
3580: 69 6e 67 20 6e 6f 74 69 63 65 61 62 6c 79 20 66 ing noticeably f
3590: 61 73 74 65 72 20 74 68 61 6e 20 44 45 46 4c 41 aster than DEFLA
35a0: 54 45 2e 3c 62 72 3e 0d 0a 42 75 74 20 69 74 27 TE.<br>..But it'
35b0: 73 20 77 6f 72 74 68 20 6e 6f 74 69 6e 67 20 74 s worth noting t
35c0: 68 61 74 20 69 6e 20 74 68 69 73 20 73 70 65 63 hat in this spec
35d0: 69 66 69 63 20 74 65 73 74 20 69 74 27 73 20 75 ific test it's u
35e0: 6e 61 62 6c 65 20 74 6f 20 72 65 61 63 68 20 61 nable to reach a
35f0: 20 62 65 74 74 65 72 20 63 6f 6d 70 72 65 73 73 better compress
3600: 69 6f 6e 20 72 61 74 69 6f 20 74 68 61 6e 20 44 ion ratio than D
3610: 45 46 4c 41 54 45 2e 3c 2f 6c 69 3e 0d 0a 3c 6c EFLATE.</li>..<l
3620: 69 3e 3c 62 3e 4c 5a 4d 41 3c 2f 62 3e 20 63 6f i><b>LZMA</b> co
3630: 6e 66 69 72 6d 73 20 74 6f 20 62 65 20 75 6e 62 nfirms to be unb
3640: 65 61 74 61 62 6c 65 20 66 6f 72 20 72 65 61 63 eatable for reac
3650: 68 69 6e 67 20 76 65 72 79 20 68 69 67 68 20 63 hing very high c
3660: 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f ompression ratio
3670: 73 2c 20 62 75 74 20 75 6e 68 61 70 70 69 6c 79 s, but unhappily
3680: 20 69 74 20 63 6f 6e 66 69 72 6d 73 20 69 74 73 it confirms its
3690: 20 62 61 72 65 6c 79 20 74 6f 6c 65 72 61 62 6c barely tolerabl
36a0: 65 20 73 6c 6f 77 6e 65 73 73 2e 3c 2f 6c 69 3e e slowness.</li>
36b0: 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 62 72 3e 3c 62 72 ..</ul>..<br><br
36c0: 3e 0d 0a 3c 68 33 3e 74 65 73 74 20 23 34 20 2d >..<h3>test #4 -
36d0: 20 63 6f 6d 70 72 65 73 73 69 6e 67 20 61 20 4c compressing a L
36e0: 61 6e 64 73 61 74 20 38 20 73 63 65 6e 65 20 28 andsat 8 scene (
36f0: 73 61 74 65 6c 6c 69 74 65 20 69 6d 61 67 65 72 satellite imager
3700: 79 29 3c 2f 68 33 3e 0d 0a 3c 74 61 62 6c 65 20 y)</h3>..<table
3710: 63 65 6c 6c 73 70 61 63 69 6e 67 3d 22 36 22 20 cellspacing="6"
3720: 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 38 22 20 cellpadding="8"
3730: 62 6f 72 64 65 72 3d 22 31 22 20 62 67 63 6f 6c border="1" bgcol
3740: 6f 72 3d 22 23 66 66 66 66 65 30 22 3e 0d 0a 3c or="#ffffe0">..<
3750: 74 72 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 tr><th bgcolor="
3760: 23 64 30 66 66 39 30 22 3e 55 6e 63 6f 6d 70 72 #d0ff90">Uncompr
3770: 65 73 73 65 64 20 53 69 7a 65 3c 2f 74 68 3e 3c essed Size</th><
3780: 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 th bgcolor="#d0f
3790: 66 39 30 22 3e 41 6c 67 6f 72 69 74 68 6d 3c 2f f90">Algorithm</
37a0: 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 th><th bgcolor="
37b0: 23 64 30 66 66 39 30 22 3e 43 6f 6d 70 72 65 73 #d0ff90">Compres
37c0: 73 65 64 20 53 69 7a 65 3c 2f 74 68 3e 0d 0a 09 sed Size</th>...
37d0: 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 <th bgcolor="#d0
37e0: 66 66 39 30 22 3e 43 6f 6d 70 72 65 73 73 69 6f ff90">Compressio
37f0: 6e 20 52 61 74 69 6f 3c 2f 74 68 3e 3c 74 68 20 n Ratio</th><th
3800: 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 bgcolor="#d0ff90
3810: 22 3e 43 6f 6d 70 72 65 73 73 69 6f 6e 20 54 69 ">Compression Ti
3820: 6d 65 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c me</th><th bgcol
3830: 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 44 65 63 or="#d0ff90">Dec
3840: 6f 6d 70 72 65 73 73 69 6f 6e 20 54 69 6d 65 3c ompression Time<
3850: 2f 74 68 3e 3c 2f 74 72 3e 3c 74 72 3e 0d 0a 09 /th></tr><tr>...
3860: 3c 74 68 20 72 6f 77 73 70 61 6e 3d 22 34 22 20 <th rowspan="4"
3870: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 align="center">1
3880: 2e 37 38 20 47 42 3c 2f 74 64 3e 0d 0a 09 3c 74 .78 GB</td>...<t
3890: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
38a0: 3e 4c 5a 34 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 >LZ4</td><td ali
38b0: 67 6e 3d 22 72 69 67 68 74 22 3e 31 2e 30 37 20 gn="right">1.07
38c0: 47 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e GB</td><td align
38d0: 3d 22 63 65 6e 74 65 72 22 3e 31 2e 36 35 3c 2f ="center">1.65</
38e0: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 td><td align="ri
38f0: 67 68 74 22 3e 35 2e 31 30 34 20 73 65 63 3c 2f ght">5.104 sec</
3900: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 td><td align="ri
3910: 67 68 74 22 3e 31 2e 32 38 35 20 73 65 63 3c 2f ght">1.285 sec</
3920: 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 td>..</tr>..<tr
3930: 62 67 63 6f 6c 6f 72 3d 22 23 64 66 64 64 63 30 bgcolor="#dfddc0
3940: 22 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 ">...<td align="
3950: 63 65 6e 74 65 72 22 3e 44 45 46 4c 41 54 45 3c center">DEFLATE<
3960: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 /td><td align="r
3970: 69 67 68 74 22 3e 39 32 38 20 4d 42 3c 2f 74 64 ight">928 MB</td
3980: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
3990: 65 72 22 3e 31 2e 39 37 3c 2f 74 64 3e 3c 74 64 er">1.97</td><td
39a0: 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 35 align="right">5
39b0: 36 2e 36 34 33 20 73 65 63 3c 2f 74 64 3e 3c 74 6.643 sec</td><t
39c0: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e d align="right">
39d0: 37 2e 31 37 36 20 73 65 63 3c 2f 74 64 3e 0d 0a 7.176 sec</td>..
39e0: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 </tr>..<tr>...<t
39f0: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
3a00: 3e 5a 53 54 44 3c 2f 74 64 3e 3c 74 64 20 61 6c >ZSTD</td><td al
3a10: 69 67 6e 3d 22 72 69 67 68 74 22 3e 39 32 39 20 ign="right">929
3a20: 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e MB</td><td align
3a30: 3d 22 63 65 6e 74 65 72 22 3e 31 2e 39 36 3c 2f ="center">1.96</
3a40: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 td><td align="ri
3a50: 67 68 74 22 3e 37 2e 32 36 31 20 73 65 63 3c 2f ght">7.261 sec</
3a60: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 td><td align="ri
3a70: 67 68 74 22 3e 32 2e 33 32 39 20 73 65 63 3c 2f ght">2.329 sec</
3a80: 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 td>..</tr>..<tr
3a90: 62 67 63 6f 6c 6f 72 3d 22 23 64 66 64 64 63 30 bgcolor="#dfddc0
3aa0: 22 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 ">...<td align="
3ab0: 63 65 6e 74 65 72 22 3e 4c 5a 4d 41 3c 2f 74 64 center">LZMA</td
3ac0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 ><td align="righ
3ad0: 74 22 3e 37 39 38 20 4d 42 3c 2f 74 64 3e 3c 74 t">798 MB</td><t
3ae0: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
3af0: 3e 32 2e 32 39 3c 2f 74 64 3e 3c 74 64 20 61 6c >2.29</td><td al
3b00: 69 67 6e 3d 22 72 69 67 68 74 22 3e 39 35 37 2e ign="right">957.
3b10: 31 38 32 20 73 65 63 3c 2f 74 64 3e 3c 74 64 20 182 sec</td><td
3b20: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 39 35 align="right">95
3b30: 2e 32 38 38 20 73 65 63 3c 2f 74 64 3e 0d 0a 3c .288 sec</td>..<
3b40: 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a /tr>..</table>..
3b50: 3c 62 3e 51 75 69 63 6b 20 61 73 73 65 73 73 6d <b>Quick assessm
3b60: 65 6e 74 3a 3c 2f 62 3e 0d 0a 3c 75 6c 3e 0d 0a ent:</b>..<ul>..
3b70: 3c 6c 69 3e 54 68 65 20 73 61 6d 70 6c 65 20 77 <li>The sample w
3b80: 61 73 20 61 20 74 61 72 62 61 6c 6c 20 63 6f 6e as a tarball con
3b90: 74 61 69 6e 69 6e 67 20 61 20 4c 61 6e 64 73 61 taining a Landsa
3ba0: 74 20 38 20 73 63 65 6e 65 2e 3c 2f 6c 69 3e 0d t 8 scene.</li>.
3bb0: 0a 3c 6c 69 3e 53 61 74 65 6c 6c 69 74 65 20 69 .<li>Satellite i
3bc0: 6d 61 67 65 72 79 20 63 6f 6e 74 61 69 6e 20 70 magery contain p
3bd0: 6c 65 6e 74 79 20 6f 66 20 72 61 77 20 62 69 6e lenty of raw bin
3be0: 61 72 79 20 64 61 74 61 2c 20 61 6e 64 20 63 6f ary data, and co
3bf0: 6e 73 65 71 75 65 6e 74 6c 79 20 61 72 65 20 72 nsequently are r
3c00: 61 74 68 65 72 20 68 61 72 64 20 74 6f 20 62 65 ather hard to be
3c10: 20 73 74 72 6f 6e 67 6c 79 20 63 6f 6d 70 72 65 strongly compre
3c20: 73 73 65 64 2e 3c 62 72 3e 0d 0a 54 68 69 73 20 ssed.<br>..This
3c30: 66 75 6c 6c 79 20 65 78 70 6c 61 69 6e 73 20 77 fully explains w
3c40: 68 79 20 69 6e 20 74 68 69 73 20 73 70 65 63 69 hy in this speci
3c50: 66 69 63 20 74 65 73 74 20 74 68 65 20 63 6f 6d fic test the com
3c60: 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f 73 20 pression ratios
3c70: 61 72 65 20 61 6c 77 61 79 73 20 76 65 72 79 20 are always very
3c80: 62 6c 61 6e 64 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 bland.</li>..<li
3c90: 3e 3c 62 3e 4c 5a 34 3c 2f 62 3e 20 63 6f 6e 66 ><b>LZ4</b> conf
3ca0: 69 72 6d 73 20 74 6f 20 62 65 20 76 65 72 79 20 irms to be very
3cb0: 66 61 73 74 20 62 75 74 20 6e 6f 74 20 76 65 72 fast but not ver
3cc0: 79 20 65 66 66 65 63 74 69 76 65 2e 3c 2f 6c 69 y effective.</li
3cd0: 3e 0d 0a 3c 6c 69 3e 3c 62 3e 44 45 46 4c 41 54 >..<li><b>DEFLAT
3ce0: 45 3c 2f 62 3e 20 63 6f 6e 66 69 72 6d 73 20 74 E</b> confirms t
3cf0: 6f 20 62 65 20 73 74 69 6c 6c 20 76 61 6c 69 64 o be still valid
3d00: 20 64 65 73 70 69 74 65 20 69 74 73 20 76 65 6e despite its ven
3d10: 65 72 61 62 6c 65 20 61 67 65 2e 3c 2f 6c 69 3e erable age.</li>
3d20: 0d 0a 3c 6c 69 3e 3c 62 3e 5a 53 54 44 3c 2f 62 ..<li><b>ZSTD</b
3d30: 3e 20 69 73 20 6f 6e 63 65 20 6d 6f 72 65 20 74 > is once more t
3d40: 68 65 20 77 69 6e 6e 65 72 20 6f 66 20 74 68 69 he winner of thi
3d50: 73 20 74 65 73 74 2c 20 62 65 69 6e 67 20 6e 6f s test, being no
3d60: 74 69 63 65 61 62 6c 79 20 66 61 73 74 65 72 20 ticeably faster
3d70: 74 68 61 6e 20 44 45 46 4c 41 54 45 2e 3c 62 72 than DEFLATE.<br
3d80: 3e 0d 0a 42 75 74 20 69 74 27 73 20 77 6f 72 74 >..But it's wort
3d90: 68 20 6e 6f 74 69 6e 67 20 74 68 61 74 20 69 6e h noting that in
3da0: 20 74 68 69 73 20 73 70 65 63 69 66 69 63 20 74 this specific t
3db0: 65 73 74 20 69 74 27 73 20 75 6e 61 62 6c 65 20 est it's unable
3dc0: 74 6f 20 72 65 61 63 68 20 61 20 62 65 74 74 65 to reach a bette
3dd0: 72 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 r compression ra
3de0: 74 69 6f 20 74 68 61 6e 20 44 45 46 4c 41 54 45 tio than DEFLATE
3df0: 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 4c .</li>..<li><b>L
3e00: 5a 4d 41 3c 2f 62 3e 20 63 6f 6e 66 69 72 6d 73 ZMA</b> confirms
3e10: 20 74 6f 20 62 65 20 75 6e 62 65 61 74 61 62 6c to be unbeatabl
3e20: 65 20 66 6f 72 20 72 65 61 63 68 69 6e 67 20 76 e for reaching v
3e30: 65 72 79 20 68 69 67 68 20 63 6f 6d 70 72 65 73 ery high compres
3e40: 73 69 6f 6e 20 72 61 74 69 6f 73 2c 20 62 75 74 sion ratios, but
3e50: 20 75 6e 68 61 70 70 69 6c 79 20 69 74 20 63 6f unhappily it co
3e60: 6e 66 69 72 6d 73 20 69 74 73 20 62 61 72 65 6c nfirms its barel
3e70: 79 20 74 6f 6c 65 72 61 62 6c 65 20 73 6c 6f 77 y tolerable slow
3e80: 6e 65 73 73 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c ness.</li>..</ul
3e90: 3e 0d 0a 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 62 3e >..<br><br>..<b>
3ea0: 46 69 6e 61 6c 20 61 73 73 65 73 73 6d 65 6e 74 Final assessment
3eb0: 20 28 61 6e 64 20 6c 65 73 73 6f 6e 73 20 6c 65 (and lessons le
3ec0: 61 72 6e 65 64 29 3c 2f 62 3e 0d 0a 3c 75 6c 3e arned)</b>..<ul>
3ed0: 0d 0a 3c 6c 69 3e 54 68 65 20 69 6e 74 72 69 6e ..<li>The intrin
3ee0: 73 69 63 20 65 66 66 69 63 69 65 6e 63 79 20 6f sic efficiency o
3ef0: 66 20 61 6c 6c 20 6c 6f 73 73 6c 65 73 73 20 63 f all lossless c
3f00: 6f 6d 70 72 65 73 73 69 6f 6e 20 61 6c 67 6f 72 ompression algor
3f10: 69 74 68 6d 20 73 74 72 6f 6e 67 6c 79 20 64 65 ithm strongly de
3f20: 70 65 6e 64 73 20 6f 6e 20 74 68 65 20 69 6e 74 pends on the int
3f30: 65 72 6e 61 6c 20 64 61 74 61 20 64 69 73 74 72 ernal data distr
3f40: 69 62 75 74 69 6f 6e 20 77 69 74 68 69 6e 20 74 ibution within t
3f50: 68 65 20 73 61 6d 70 6c 65 2e 0d 0a 3c 75 6c 3e he sample...<ul>
3f60: 0d 0a 3c 6c 69 3e 73 61 6d 70 6c 65 73 20 70 72 ..<li>samples pr
3f70: 65 73 65 6e 74 69 6e 67 20 61 20 76 65 72 79 20 esenting a very
3f80: 72 65 67 75 6c 61 72 20 61 6e 64 20 65 61 73 69 regular and easi
3f90: 6c 79 20 70 72 65 64 69 63 74 61 62 6c 65 20 69 ly predictable i
3fa0: 6e 74 65 72 6e 61 6c 20 64 69 73 74 72 69 62 75 nternal distribu
3fb0: 74 69 6f 6e 20 68 61 76 65 20 61 20 3c 62 3e 6c tion have a <b>l
3fc0: 6f 77 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 65 ow information e
3fd0: 6e 74 72 6f 70 79 3c 2f 62 3e 2c 20 61 6e 64 20 ntropy</b>, and
3fe0: 63 61 6e 20 62 65 20 73 74 72 6f 6e 67 6c 79 20 can be strongly
3ff0: 63 6f 6d 70 72 65 73 73 65 64 2e 3c 62 72 3e 0d compressed.<br>.
4000: 0a 41 20 74 79 70 69 63 61 6c 20 65 78 61 6d 70 .A typical examp
4010: 6c 65 3a 20 74 65 78 74 20 66 69 6c 65 73 20 77 le: text files w
4020: 72 69 74 74 65 6e 20 69 73 20 73 6f 6d 65 20 6c ritten is some l
4030: 61 6e 67 75 61 67 65 20 62 61 73 65 64 20 6f 6e anguage based on
4040: 20 74 68 65 20 4c 61 74 69 6e 20 61 6c 70 68 61 the Latin alpha
4050: 62 65 74 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 73 bet.</li>..<li>s
4060: 61 6d 70 6c 65 73 20 70 72 65 73 65 6e 74 69 6e amples presentin
4070: 67 20 61 6e 20 69 72 72 65 67 75 6c 61 72 20 61 g an irregular a
4080: 6e 64 20 72 61 6e 64 6f 6d 20 69 6e 74 65 72 6e nd random intern
4090: 61 6c 20 64 69 73 74 72 69 62 75 74 69 6f 6e 20 al distribution
40a0: 68 61 76 65 20 61 20 3c 62 3e 68 69 67 68 20 69 have a <b>high i
40b0: 6e 66 6f 72 6d 61 74 69 6f 6e 20 65 6e 74 72 6f nformation entro
40c0: 70 79 3c 2f 62 3e 2c 20 61 6e 64 20 63 61 6e 20 py</b>, and can
40d0: 62 65 20 6f 6e 6c 79 20 6d 6f 64 65 72 61 74 65 be only moderate
40e0: 6c 79 20 63 6f 6d 70 72 65 73 73 65 64 2e 3c 62 ly compressed.<b
40f0: 72 3e 0d 0a 41 20 74 79 70 69 63 61 6c 20 65 78 r>..A typical ex
4100: 61 6d 70 6c 65 3a 20 61 6e 79 20 6b 69 6e 64 20 ample: any kind
4110: 6f 66 20 62 69 6e 61 72 79 20 66 69 6c 65 2e 3c of binary file.<
4120: 62 72 3e 0d 0a 3c 62 3e 4e 6f 74 65 3c 2f 62 3e br>..<b>Note</b>
4130: 3a 20 61 6e 79 20 62 69 6e 61 72 79 20 66 69 6c : any binary fil
4140: 65 20 70 72 65 73 65 6e 74 69 6e 67 20 61 20 70 e presenting a p
4150: 65 72 66 65 63 74 6c 79 20 72 61 6e 64 6f 6d 20 erfectly random
4160: 69 6e 74 65 72 6e 61 6c 20 64 69 73 74 72 69 62 internal distrib
4170: 75 74 69 6f 6e 20 6f 66 20 76 61 6c 75 65 73 20 ution of values
4180: 69 73 20 63 6f 6e 63 65 70 74 75 61 6c 6c 79 20 is conceptually
4190: 69 6d 70 6f 73 73 69 62 6c 65 20 74 6f 20 62 65 impossible to be
41a0: 20 63 6f 6d 70 72 65 73 73 65 64 20 61 74 20 61 compressed at a
41b0: 6c 6c 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 3c ll.</li>..</ul><
41c0: 2f 6c 69 3e 0d 0a 3c 6c 69 3e 61 6e 79 20 6c 6f /li>..<li>any lo
41d0: 73 73 6c 65 73 73 20 63 6f 6d 70 72 65 73 73 69 ssless compressi
41e0: 6f 6e 20 73 74 72 61 74 65 67 79 20 69 6d 70 6c on strategy impl
41f0: 69 65 73 20 61 20 74 72 61 64 65 20 6f 66 66 20 ies a trade off
4200: 62 65 74 77 65 65 6e 20 73 70 65 65 64 20 61 6e between speed an
4210: 64 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 d compression ra
4220: 74 69 6f 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e tio:..<ul>..<li>
4230: 79 6f 75 20 63 61 6e 20 6f 70 74 69 6d 69 7a 65 you can optimize
4240: 20 66 6f 72 20 73 70 65 65 64 2c 20 62 75 74 20 for speed, but
4250: 69 6e 20 74 68 69 73 20 63 61 73 65 20 79 6f 75 in this case you
4260: 20 61 72 65 20 6e 65 63 65 73 73 61 72 69 6c 79 are necessarily
4270: 20 73 61 63 72 69 66 69 63 69 6e 67 20 74 68 65 sacrificing the
4280: 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 compression rat
4290: 69 6f 2e 3c 62 72 3e 0d 0a 28 74 68 69 73 20 69 io.<br>..(this i
42a0: 73 20 74 68 65 20 63 68 6f 69 63 65 20 61 64 6f s the choice ado
42b0: 70 74 65 64 20 62 79 20 4c 5a 34 29 2e 3c 2f 6c pted by LZ4).</l
42c0: 69 3e 0d 0a 3c 6c 69 3e 61 74 20 74 68 65 20 6f i>..<li>at the o
42d0: 70 70 6f 73 69 74 65 20 73 69 64 65 20 6f 66 20 pposite side of
42e0: 74 68 65 20 73 70 65 63 74 72 75 6d 20 79 6f 75 the spectrum you
42f0: 20 63 61 6e 20 6f 70 74 69 6d 69 7a 65 20 66 6f can optimize fo
4300: 72 20 68 69 67 68 20 63 6f 6d 70 72 65 73 73 69 r high compressi
4310: 6f 6e 20 72 61 74 69 6f 73 2c 20 62 75 74 20 69 on ratios, but i
4320: 6e 20 74 68 69 73 20 63 61 73 65 20 79 6f 75 20 n this case you
4330: 61 72 65 20 6e 65 63 65 73 73 61 72 69 6c 79 20 are necessarily
4340: 73 61 63 72 69 66 69 63 69 6e 67 20 73 70 65 65 sacrificing spee
4350: 64 2e 3c 62 72 3e 0d 0a 28 74 68 69 73 20 69 73 d.<br>..(this is
4360: 20 74 68 65 20 63 68 6f 69 63 65 20 61 64 6f 70 the choice adop
4370: 74 65 64 20 62 79 20 4c 5a 4d 41 29 2e 3c 2f 6c ted by LZMA).</l
4380: 69 3e 0d 0a 3c 6c 69 3e 74 68 65 20 77 69 73 65 i>..<li>the wise
4390: 73 74 20 61 70 70 72 6f 61 63 68 20 66 61 6c 6c st approach fall
43a0: 73 20 73 6f 6d 65 77 68 65 72 65 20 69 6e 20 74 s somewhere in t
43b0: 68 65 20 6d 69 64 64 6c 65 3b 20 61 20 77 65 6c he middle; a wel
43c0: 6c 20 62 61 6c 61 6e 63 65 64 20 6d 69 78 20 28 l balanced mix (
43d0: 61 20 72 65 61 73 6f 6e 61 62 6c 65 20 63 6f 6d a reasonable com
43e0: 70 72 6f 6d 69 73 65 29 20 62 65 74 77 65 65 6e promise) between
43f0: 20 73 70 65 65 64 20 61 6e 64 20 63 6f 6d 70 72 speed and compr
4400: 65 73 73 69 6f 6e 20 72 61 74 69 6f 2e 3c 62 72 ession ratio.<br
4410: 3e 0d 0a 28 74 68 69 73 20 69 73 20 74 68 65 20 >..(this is the
4420: 63 68 6f 69 63 65 20 6f 66 20 62 6f 74 68 20 44 choice of both D
4430: 45 46 4c 41 54 45 20 61 6e 64 20 5a 53 54 44 29 EFLATE and ZSTD)
4440: 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 3c .</li>..</ul>..<
4450: 6c 69 3e 74 68 65 20 76 65 72 79 20 72 65 63 65 li>the very rece
4460: 6e 74 6c 79 20 69 6e 74 72 6f 64 75 63 65 64 20 ntly introduced
4470: 5a 53 54 44 20 63 6c 65 61 72 6c 79 20 69 73 20 ZSTD clearly is
4480: 61 20 73 75 70 65 72 69 6f 72 20 61 6c 74 65 72 a superior alter
4490: 6e 61 74 69 76 65 20 74 6f 20 74 68 65 20 6f 6c native to the ol
44a0: 64 20 44 45 46 4c 41 54 45 3a 0d 0a 3c 75 6c 3e d DEFLATE:..<ul>
44b0: 0d 0a 3c 6c 69 3e 5a 53 54 44 20 69 73 20 61 6c ..<li>ZSTD is al
44c0: 77 61 79 73 20 6e 6f 74 69 63 65 61 62 6c 79 20 ways noticeably
44d0: 66 61 73 74 65 72 20 74 68 61 6e 20 44 45 46 4c faster than DEFL
44e0: 41 54 45 2c 20 62 6f 74 68 20 77 68 65 6e 20 63 ATE, both when c
44f0: 6f 6d 70 72 65 73 73 69 6e 67 20 61 6e 64 20 64 ompressing and d
4500: 65 63 6f 6d 70 72 65 73 73 69 6e 67 2e 3c 2f 6c ecompressing.</l
4510: 69 3e 0d 0a 3c 6c 69 3e 5a 53 54 44 20 69 73 20 i>..<li>ZSTD is
4520: 6e 6f 74 20 61 6c 77 61 79 73 20 61 62 6c 65 20 not always able
4530: 74 6f 20 72 65 61 63 68 20 62 65 74 74 65 72 20 to reach better
4540: 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 compression rati
4550: 6f 73 20 74 68 65 6e 20 44 45 46 4c 41 54 45 20 os then DEFLATE
4560: 28 69 74 20 64 65 70 65 6e 64 73 20 6f 6e 20 74 (it depends on t
4570: 68 65 20 73 61 6d 70 6c 65 27 73 20 69 6e 66 6f he sample's info
4580: 72 6d 61 74 69 6f 6e 20 65 6e 74 72 6f 70 79 29 rmation entropy)
4590: 2e 3c 62 72 3e 0d 0a 4f 6e 20 6d 61 6e 79 20 63 .<br>..On many c
45a0: 6f 6d 6d 6f 6e 20 63 61 73 65 73 20 5a 53 54 44 ommon cases ZSTD
45b0: 20 63 61 6e 20 65 61 73 69 6c 79 20 6f 75 74 70 can easily outp
45c0: 65 72 66 6f 72 6d 20 44 45 46 4c 41 54 45 20 63 erform DEFLATE c
45d0: 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f ompression ratio
45e0: 73 2e 3c 62 72 3e 0d 0a 57 68 65 6e 20 6e 6f 74 s.<br>..When not
45f0: 2c 20 69 74 20 73 74 69 6c 6c 20 72 65 6d 61 69 , it still remai
4600: 6e 73 20 61 62 6c 65 20 74 6f 20 61 63 68 69 65 ns able to achie
4610: 76 65 20 28 6d 6f 72 65 20 6f 72 20 6c 65 73 73 ve (more or less
4620: 29 20 74 68 65 20 73 61 6d 65 20 63 6f 6d 70 72 ) the same compr
4630: 65 73 73 69 6f 6e 20 72 61 74 69 6f 73 20 74 68 ession ratios th
4640: 61 6e 20 44 45 46 4c 41 54 45 20 62 75 74 20 69 an DEFLATE but i
4650: 6e 20 61 20 66 61 73 74 65 72 20 74 69 6d 65 2e n a faster time.
4660: 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 3c 2f 6c 69 </li>..</ul></li
4670: 3e 0d 0a 3c 6c 69 3e 4c 5a 34 20 69 73 20 6e 6f >..<li>LZ4 is no
4680: 74 20 72 65 61 6c 6c 79 20 69 6e 74 65 72 65 73 t really interes
4690: 74 69 6e 67 20 28 61 74 20 6c 65 61 73 74 20 66 ting (at least f
46a0: 6f 72 20 67 65 6e 65 72 61 6c 20 70 75 72 70 6f or general purpo
46b0: 73 65 20 73 63 6f 70 65 73 29 2e 0d 0a 49 74 27 se scopes)...It'
46c0: 73 20 73 75 72 65 6c 79 20 76 65 72 79 20 66 61 s surely very fa
46d0: 73 74 2c 20 62 75 74 20 6e 6f 74 20 69 6d 70 72 st, but not impr
46e0: 65 73 73 69 76 65 6c 79 20 66 61 73 74 65 72 20 essively faster
46f0: 74 68 61 6e 20 5a 53 54 44 2e 3c 62 72 3e 0d 0a than ZSTD.<br>..
4700: 41 6e 64 20 69 74 27 73 20 63 6f 6d 70 72 65 73 And it's compres
4710: 73 69 6f 6e 20 72 61 74 69 6f 73 20 61 72 65 20 sion ratios are
4720: 61 6c 77 61 79 73 20 74 6f 6f 20 6d 69 6c 64 20 always too mild
4730: 61 6e 64 20 62 6c 61 6e 64 20 74 6f 20 62 65 20 and bland to be
4740: 72 65 61 6c 6c 79 20 61 70 70 65 61 6c 69 6e 67 really appealing
4750: 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 4c 5a 4d 41 .</li>..<li>LZMA
4760: 20 68 61 73 20 6e 6f 20 61 6c 74 65 72 6e 61 74 has no alternat
4770: 69 76 65 73 20 77 68 65 6e 20 76 65 72 79 20 73 ives when very s
4780: 74 72 6f 6e 67 20 63 6f 6d 70 72 65 73 73 69 6f trong compressio
4790: 6e 20 72 61 74 69 6f 73 20 61 72 65 20 61 6e 20 n ratios are an
47a0: 61 62 73 6f 6c 75 74 65 20 6d 75 73 74 2e 3c 62 absolute must.<b
47b0: 72 3e 0d 0a 42 75 74 20 69 74 73 20 74 65 72 72 r>..But its terr
47c0: 69 62 6c 65 20 73 6c 6f 77 6e 65 73 73 20 28 62 ible slowness (b
47d0: 6f 74 68 20 77 68 65 6e 20 63 6f 6d 70 72 65 73 oth when compres
47e0: 73 69 6e 67 20 61 6e 64 20 64 65 63 6f 6d 70 72 sing and decompr
47f0: 65 73 73 69 6e 67 29 20 6d 75 73 74 20 61 6c 77 essing) must alw
4800: 61 79 73 20 62 65 20 74 61 6b 65 6e 20 69 6e 20 ays be taken in
4810: 76 65 72 79 20 73 65 72 69 6f 75 73 20 61 63 63 very serious acc
4820: 6f 75 6e 74 2c 20 62 65 63 61 75 73 65 20 69 74 ount, because it
4830: 20 63 6f 75 6c 64 20 65 61 73 69 6c 79 20 62 65 could easily be
4840: 63 6f 6d 65 20 61 20 73 65 76 65 72 65 20 62 6f come a severe bo
4850: 74 74 6c 65 6e 65 63 6b 2e 3c 2f 6c 69 3e 0d 0a ttleneck.</li>..
4860: 3c 6c 69 3e 44 45 46 4c 41 54 45 20 69 73 6e 27 <li>DEFLATE isn'
4870: 74 20 61 74 20 61 6c 6c 20 64 65 61 64 3b 20 64 t at all dead; d
4880: 65 73 70 69 74 65 20 69 74 73 20 72 61 74 68 65 espite its rathe
4890: 72 20 76 65 6e 65 72 61 62 6c 65 20 61 67 65 20 r venerable age
48a0: 69 74 20 73 74 69 6c 6c 20 63 6f 6e 66 69 72 6d it still confirm
48b0: 73 20 74 6f 20 62 65 20 61 6e 20 68 6f 6e 65 73 s to be an hones
48c0: 74 20 70 65 72 66 6f 72 6d 65 72 2e 3c 62 72 3e t performer.<br>
48d0: 0d 0a 41 6e 64 20 63 6f 6e 73 69 64 65 72 69 6e ..And considerin
48e0: 67 20 69 74 73 20 61 6c 6d 6f 73 74 20 75 6e 69 g its almost uni
48f0: 76 65 72 73 61 6c 20 61 6e 64 20 70 65 72 76 61 versal and perva
4900: 73 69 76 65 20 61 64 6f 70 74 69 6f 6e 20 69 74 sive adoption it
4910: 20 77 69 6c 6c 20 73 75 72 65 6c 79 20 73 75 72 will surely sur
4920: 76 69 76 65 20 66 6f 72 20 6d 61 6e 79 20 6c 6f vive for many lo
4930: 6e 67 20 79 65 61 72 73 20 74 6f 20 63 6f 6d 65 ng years to come
4940: 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 3c .</li>..</ul>..<
4950: 62 72 3e 0d 0a 3c 68 72 3e 0d 0a 3c 68 31 3e 54 br>..<hr>..<h1>T
4960: 65 73 74 69 6e 67 20 52 61 73 74 65 72 20 43 6f esting Raster Co
4970: 76 65 72 61 67 65 73 3c 2f 68 31 3e 0d 0a 54 68 verages</h1>..Th
4980: 69 73 20 73 65 63 6f 6e 64 20 67 72 6f 75 70 20 is second group
4990: 6f 66 20 74 65 73 74 73 20 77 69 6c 6c 20 62 65 of tests will be
49a0: 20 6d 6f 72 65 20 73 70 65 63 69 66 69 63 61 6c more specifical
49b0: 6c 79 20 66 6f 63 75 73 65 64 20 6f 6e 20 64 69 ly focused on di
49c0: 72 65 63 74 6c 79 20 63 6f 6d 70 61 72 69 6e 67 rectly comparing
49d0: 20 74 68 65 20 76 61 72 69 6f 75 73 20 6c 6f 73 the various los
49e0: 73 6c 65 73 73 20 63 6f 6d 70 72 65 73 73 69 6f sless compressio
49f0: 6e 20 6d 65 74 68 6f 64 73 20 61 73 20 69 6d 70 n methods as imp
4a00: 6c 65 6d 65 6e 74 65 64 20 62 79 20 52 61 73 74 lemented by Rast
4a10: 65 72 4c 69 74 65 32 20 66 6f 72 20 65 6e 63 6f erLite2 for enco
4a20: 64 69 6e 67 20 61 6e 64 20 64 65 63 6f 64 69 6e ding and decodin
4a30: 67 20 52 61 73 74 65 72 20 43 6f 76 65 72 61 67 g Raster Coverag
4a40: 65 20 54 69 6c 65 73 2e 0d 0a 3c 75 6c 3e 0d 0a e Tiles...<ul>..
4a50: 3c 6c 69 3e 53 65 76 65 72 61 6c 20 64 69 73 74 <li>Several dist
4a60: 69 6e 63 74 20 52 61 73 74 65 72 4c 69 74 65 32 inct RasterLite2
4a70: 20 64 61 74 61 62 61 73 65 73 20 77 69 6c 6c 20 databases will
4a80: 62 65 20 63 72 65 61 74 65 64 20 61 6e 64 20 66 be created and f
4a90: 75 6c 6c 79 20 70 6f 70 75 6c 61 74 65 64 20 62 ully populated b
4aa0: 79 20 69 6d 70 6f 72 74 69 6e 67 20 74 68 65 20 y importing the
4ab0: 73 61 6d 65 20 73 61 6d 70 6c 65 20 62 75 74 20 same sample but
4ac0: 62 79 20 61 70 70 6c 79 69 6e 67 20 61 20 64 69 by applying a di
4ad0: 66 66 65 72 65 6e 74 20 63 6f 6d 70 72 65 73 73 fferent compress
4ae0: 69 6f 6e 20 6d 65 74 68 6f 64 20 66 6f 72 20 65 ion method for e
4af0: 61 63 68 20 64 61 74 61 62 61 73 65 2e 3c 2f 6c ach database.</l
4b00: 69 3e 0d 0a 3c 6c 69 3e 54 68 65 20 3c 62 3e 63 i>..<li>The <b>c
4b10: 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f ompression ratio
4b20: 73 3c 2f 62 3e 20 77 69 6c 6c 20 62 65 20 74 68 s</b> will be th
4b30: 65 6e 20 63 6f 6d 70 75 74 65 64 20 66 72 6f 6d en computed from
4b40: 20 74 68 65 20 73 69 7a 65 73 20 6f 66 20 74 68 the sizes of th
4b50: 65 20 3c 75 3e 75 6e 63 6f 6d 70 72 65 73 73 65 e <u>uncompresse
4b60: 64 3c 2f 75 3e 20 64 61 74 61 62 61 73 65 20 28 d</u> database (
4b70: 6d 65 74 68 6f 64 20 3c 62 3e 4e 4f 4e 45 3c 2f method <b>NONE</
4b80: 62 3e 29 20 61 6e 64 20 61 6e 79 20 6f 74 68 65 b>) and any othe
4b90: 72 20 64 61 74 61 62 61 73 65 20 62 61 73 65 64 r database based
4ba0: 20 6f 6e 20 74 68 65 20 73 61 6d 65 20 73 61 6d on the same sam
4bb0: 70 6c 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 54 ple.</li>..<li>T
4bc0: 68 65 20 3c 62 3e 63 6f 6d 70 72 65 73 73 69 6f he <b>compressio
4bd0: 6e 20 74 69 6d 65 3c 2f 62 3e 20 77 69 6c 6c 20 n time</b> will
4be0: 62 65 20 74 68 65 20 74 69 6d 65 20 28 61 73 20 be the time (as
4bf0: 72 65 70 6f 72 74 65 64 20 62 79 20 3c 62 3e 72 reported by <b>r
4c00: 6c 32 74 6f 6f 6c 3c 2f 62 3e 29 20 72 65 71 75 l2tool</b>) requ
4c10: 69 72 65 64 20 66 6f 72 20 63 72 65 61 74 69 6e ired for creatin
4c20: 67 20 61 6e 64 20 66 75 6c 6c 79 20 70 6f 70 75 g and fully popu
4c30: 6c 61 74 69 6e 67 20 65 61 63 68 20 64 61 74 61 lating each data
4c40: 62 61 73 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e base.</li>..<li>
4c50: 54 68 65 20 3c 62 3e 64 65 63 6f 6d 70 72 65 73 The <b>decompres
4c60: 73 69 6f 6e 20 74 69 6d 65 3c 2f 62 3e 20 77 69 sion time</b> wi
4c70: 6c 6c 20 62 65 20 74 68 65 20 74 69 6d 65 20 28 ll be the time (
4c80: 61 73 20 72 65 70 6f 72 74 65 64 20 62 79 20 3c as reported by <
4c90: 62 3e 73 70 61 74 69 61 6c 69 74 65 20 43 4c 49 b>spatialite CLI
4ca0: 3c 2f 62 3e 29 20 66 6f 72 20 65 78 65 63 75 74 </b>) for execut
4cb0: 69 6e 67 20 61 6e 20 53 51 4c 20 73 63 72 69 70 ing an SQL scrip
4cc0: 74 20 63 6f 6e 74 61 69 6e 69 6e 67 20 32 35 36 t containing 256
4cd0: 20 3c 62 3e 53 45 4c 45 43 54 20 52 4c 32 5f 47 <b>SELECT RL2_G
4ce0: 65 74 4d 61 70 49 6d 61 67 65 46 72 6f 6d 52 61 etMapImageFromRa
4cf0: 73 74 65 72 28 29 3c 2f 62 3e 20 73 74 61 74 65 ster()</b> state
4d00: 6d 65 6e 74 73 2e 3c 62 72 3e 0d 0a 41 6c 6c 20 ments.<br>..All
4d10: 72 65 71 75 65 73 74 65 64 20 69 6d 61 67 65 73 requested images
4d20: 20 77 69 6c 6c 20 62 65 20 31 30 30 30 78 31 30 will be 1000x10
4d30: 30 30 20 70 69 78 65 6c 73 20 61 74 20 66 75 6c 00 pixels at ful
4d40: 6c 20 72 65 73 6f 6c 75 74 69 6f 6e 2c 20 63 65 l resolution, ce
4d50: 6e 74 65 72 65 64 20 6f 6e 20 64 69 66 66 65 72 ntered on differ
4d60: 65 6e 74 20 6c 6f 63 61 74 69 6f 6e 73 20 61 6e ent locations an
4d70: 64 20 61 64 6f 70 74 69 6e 67 20 76 61 72 69 6f d adopting vario
4d80: 75 73 20 53 4c 44 2f 53 45 20 73 74 79 6c 65 73 us SLD/SE styles
4d90: 2e 3c 62 72 3e 0d 0a 54 68 69 73 20 69 73 20 61 .<br>..This is a
4da0: 73 73 75 6d 65 64 20 74 6f 20 62 65 20 61 20 72 ssumed to be a r
4db0: 65 61 6c 69 73 74 69 63 20 65 76 61 6c 75 61 74 ealistic evaluat
4dc0: 69 6f 6e 2c 20 62 65 63 61 75 73 65 20 69 74 20 ion, because it
4dd0: 62 61 73 69 63 61 6c 6c 79 20 63 6f 72 72 65 73 basically corres
4de0: 70 6f 6e 64 73 20 74 6f 20 74 68 65 20 74 79 70 ponds to the typ
4df0: 69 63 61 6c 20 77 6f 72 6b 6c 6f 61 64 20 6f 66 ical workload of
4e00: 20 61 6e 20 68 79 70 6f 74 68 65 74 69 63 61 6c an hypothetical
4e10: 20 57 4d 53 20 73 65 72 76 65 72 2e 3c 2f 6c 69 WMS server.</li
4e20: 3e 20 0d 0a 3c 6c 69 3e 3c 62 3e 4e 6f 74 65 3c > ..<li><b>Note<
4e30: 2f 62 3e 3a 20 74 68 65 20 6d 65 61 73 75 72 65 /b>: the measure
4e40: 64 20 74 69 6d 69 6e 67 73 20 77 69 6c 6c 20 6e d timings will n
4e50: 6f 74 20 64 69 72 65 63 74 6c 79 20 63 6f 72 72 ot directly corr
4e60: 65 73 70 6f 6e 64 20 74 6f 20 74 68 65 20 69 6e espond to the in
4e70: 74 72 69 6e 73 69 63 20 73 70 65 65 64 20 6f 66 trinsic speed of
4e80: 20 65 61 63 68 20 63 6f 6d 70 72 65 73 73 69 6f each compressio
4e90: 6e 20 6d 65 74 68 6f 64 2e 3c 62 72 3e 0d 0a 54 n method.<br>..T
4ea0: 68 65 72 65 20 61 72 65 20 6f 62 76 69 6f 75 73 here are obvious
4eb0: 6c 79 20 73 65 76 65 72 61 6c 20 64 69 73 74 75 ly several distu
4ec0: 72 62 69 6e 67 20 66 61 63 74 6f 72 73 20 28 6d rbing factors (m
4ed0: 61 69 6e 6c 79 20 64 75 65 20 74 6f 20 49 2f 4f ainly due to I/O
4ee0: 20 6f 70 65 72 61 74 69 6f 6e 73 29 20 74 6f 20 operations) to
4ef0: 62 65 20 74 61 6b 65 6e 20 69 6e 20 61 63 63 6f be taken in acco
4f00: 75 6e 74 2e 3c 62 72 3e 0d 0a 48 6f 77 65 76 65 unt.<br>..Howeve
4f10: 72 20 74 68 65 20 6f 70 65 72 61 74 69 6f 6e 61 r the operationa
4f20: 6c 20 73 65 71 75 65 6e 63 65 20 69 73 20 73 74 l sequence is st
4f30: 72 69 63 74 6c 79 20 74 68 65 20 73 61 6d 65 20 rictly the same
4f40: 66 6f 72 20 61 6c 6c 20 74 65 73 74 73 20 62 61 for all tests ba
4f50: 73 65 64 20 6f 6e 20 74 68 65 20 73 61 6d 65 20 sed on the same
4f60: 73 61 6d 70 6c 65 2c 20 73 6f 20 74 68 65 20 75 sample, so the u
4f70: 6e 69 71 75 65 20 66 61 63 74 6f 72 20 65 78 70 nique factor exp
4f80: 6c 61 69 6e 69 6e 67 20 66 6f 72 20 64 69 66 66 laining for diff
4f90: 65 72 65 6e 74 20 74 69 6d 69 6e 67 73 20 69 73 erent timings is
4fa0: 20 74 68 65 20 63 6f 6d 70 72 65 73 73 69 6f 6e the compression
4fb0: 20 6d 65 74 68 6f 64 20 69 74 73 65 6c 66 2e 3c method itself.<
4fc0: 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 62 72 /li>..</ul>..<br
4fd0: 3e 0d 0a 3c 68 33 3e 54 65 73 74 20 23 35 20 2d >..<h3>Test #5 -
4fe0: 20 47 72 61 79 73 63 61 6c 65 20 52 61 73 74 65 Grayscale Raste
4ff0: 72 20 43 6f 76 65 72 61 67 65 3c 2f 68 33 3e 0d r Coverage</h3>.
5000: 0a 3c 74 61 62 6c 65 20 63 65 6c 6c 73 70 61 63 .<table cellspac
5010: 69 6e 67 3d 22 36 22 20 63 65 6c 6c 70 61 64 64 ing="6" cellpadd
5020: 69 6e 67 3d 22 38 22 20 62 6f 72 64 65 72 3d 22 ing="8" border="
5030: 31 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66 66 1" bgcolor="#fff
5040: 66 65 30 22 3e 0d 0a 3c 74 72 3e 3c 74 68 20 62 fe0">..<tr><th b
5050: 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 gcolor="#d0ff90"
5060: 3e 43 6f 6d 70 72 65 73 73 69 6f 6e 20 4d 65 74 >Compression Met
5070: 68 6f 64 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f hod</th><th bgco
5080: 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 44 42 lor="#d0ff90">DB
5090: 20 53 69 7a 65 3c 2f 74 68 3e 3c 74 68 20 62 67 Size</th><th bg
50a0: 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e color="#d0ff90">
50b0: 43 6f 6d 70 72 65 73 73 69 6f 6e 20 52 61 74 69 Compression Rati
50c0: 6f 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f o</th><th bgcolo
50d0: 72 3d 22 23 64 30 66 66 39 30 22 3e 43 6f 6d 70 r="#d0ff90">Comp
50e0: 72 65 73 73 69 6f 6e 20 54 69 6d 65 3c 2f 74 68 ression Time</th
50f0: 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 ><th bgcolor="#d
5100: 30 66 66 39 30 22 3e 44 65 63 6f 6d 70 72 65 73 0ff90">Decompres
5110: 73 69 6f 6e 20 54 69 6d 65 3c 2f 74 68 3e 3c 2f sion Time</th></
5120: 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20 tr>..<tr>...<td
5130: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c align="center"><
5140: 62 3e 4e 4f 4e 45 3c 2f 62 3e 20 3c 69 3e 6e 6f b>NONE</b> <i>no
5150: 20 63 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e compression</i>
5160: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
5170: 72 69 67 68 74 22 3e 34 38 31 20 4d 42 3c 2f 74 right">481 MB</t
5180: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
5190: 74 65 72 22 3e 31 2e 30 30 3c 2f 74 64 3e 3c 74 ter">1.00</td><t
51a0: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e d align="right">
51b0: 35 34 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 54sec</td><td al
51c0: 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69 6e ign="right">1min
51d0: 20 34 34 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 44sec</td>..</t
51e0: 72 3e 0d 0a 3c 74 72 20 62 67 63 6f 6c 6f 72 3d r>..<tr bgcolor=
51f0: 22 23 64 66 64 64 63 30 22 3e 0d 0a 09 3c 74 64 "#dfddc0">...<td
5200: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
5210: 3c 62 3e 4c 5a 34 3c 2f 62 3e 20 3c 69 3e 76 65 <b>LZ4</b> <i>ve
5220: 72 79 20 66 61 73 74 20 63 6f 6d 70 72 65 73 73 ry fast compress
5230: 69 6f 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 ion</i></td><td
5240: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 34 31 align="right">41
5250: 36 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 6 MB</td><td ali
5260: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e 31 36 gn="center">1.16
5270: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
5280: 72 69 67 68 74 22 3e 35 39 73 65 63 3c 2f 74 64 right">59sec</td
5290: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 ><td align="righ
52a0: 74 22 3e 31 6d 69 6e 20 34 38 73 65 63 3c 2f 74 t">1min 48sec</t
52b0: 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d d>..</tr>..<tr>.
52c0: 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e ..<td align="cen
52d0: 74 65 72 22 3e 3c 62 3e 44 45 46 4c 41 54 45 3c ter"><b>DEFLATE<
52e0: 2f 62 3e 20 3c 69 3e 7a 69 70 20 63 6f 6d 70 72 /b> <i>zip compr
52f0: 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c ession</i></td><
5300: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
5310: 3e 33 34 39 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 >349 MB</td><td
5320: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 align="center">1
5330: 2e 33 38 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 .38</td><td alig
5340: 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69 6e 20 35 n="right">1min 5
5350: 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 sec</td><td alig
5360: 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69 6e 20 34 n="right">1min 4
5370: 34 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 4sec</td>..</tr>
5380: 0d 0a 3c 74 72 20 62 67 63 6f 6c 6f 72 3d 22 23 ..<tr bgcolor="#
5390: 64 66 64 64 63 30 22 3e 0d 0a 09 3c 74 64 20 61 dfddc0">...<td a
53a0: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 lign="center"><b
53b0: 3e 5a 53 54 44 3c 2f 62 3e 20 3c 69 3e 66 61 73 >ZSTD</b> <i>fas
53c0: 74 20 63 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 t compression</i
53d0: 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d ></td><td align=
53e0: 22 72 69 67 68 74 22 3e 33 34 36 20 4d 42 3c 2f "right">346 MB</
53f0: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
5400: 6e 74 65 72 22 3e 31 2e 33 39 3c 2f 74 64 3e 3c nter">1.39</td><
5410: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
5420: 3e 31 6d 69 6e 20 30 73 65 63 3c 2f 74 64 3e 3c >1min 0sec</td><
5430: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
5440: 3e 31 6d 69 6e 20 35 34 73 65 63 3c 2f 74 64 3e >1min 54sec</td>
5450: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 ..</tr>..<tr>...
5460: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
5470: 72 22 3e 3c 62 3e 4c 5a 4d 41 3c 2f 62 3e 20 3c r"><b>LZMA</b> <
5480: 69 3e 37 2d 7a 69 70 20 63 6f 6d 70 72 65 73 73 i>7-zip compress
5490: 69 6f 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 ion</i></td><td
54a0: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 33 34 align="right">34
54b0: 35 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 5 MB</td><td ali
54c0: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e 34 30 gn="center">1.40
54d0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
54e0: 72 69 67 68 74 22 3e 33 6d 69 6e 20 32 73 65 63 right">3min 2sec
54f0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
5500: 72 69 67 68 74 22 3e 32 6d 69 6e 20 33 73 65 63 right">2min 3sec
5510: 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 </td>..</tr>..<t
5520: 72 20 62 67 63 6f 6c 6f 72 3d 22 23 64 66 64 64 r bgcolor="#dfdd
5530: 63 30 22 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e c0">...<td align
5540: 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 50 4e 47 ="center"><b>PNG
5550: 3c 2f 62 3e 20 3c 69 3e 6c 6f 73 73 6c 65 73 73 </b> <i>lossless
5560: 20 69 6d 61 67 65 20 66 6f 72 6d 61 74 3c 2f 69 image format</i
5570: 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d ></td><td align=
5580: 22 72 69 67 68 74 22 3e 33 34 36 20 4d 42 3c 2f "right">346 MB</
5590: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
55a0: 6e 74 65 72 22 3e 31 2e 33 39 3c 2f 74 64 3e 3c nter">1.39</td><
55b0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
55c0: 3e 31 6d 69 6e 20 38 73 65 63 3c 2f 74 64 3e 3c >1min 8sec</td><
55d0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
55e0: 3e 31 6d 69 6e 20 34 31 73 65 63 3c 2f 74 64 3e >1min 41sec</td>
55f0: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 ..</tr>..<tr>...
5600: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
5610: 72 22 3e 3c 62 3e 4c 4c 5f 57 45 42 50 3c 2f 62 r"><b>LL_WEBP</b
5620: 3e 20 3c 69 3e 6c 6f 73 73 6c 65 73 73 20 57 65 > <i>lossless We
5630: 62 50 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 bP</i></td><td a
5640: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 33 32 30 lign="right">320
5650: 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 MB</td><td alig
5660: 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e 35 30 3c n="center">1.50<
5670: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 /td><td align="r
5680: 69 67 68 74 22 3e 34 6d 69 6e 20 32 37 73 65 63 ight">4min 27sec
5690: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
56a0: 72 69 67 68 74 22 3e 32 6d 69 6e 20 30 32 73 65 right">2min 02se
56b0: 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c c</td>..</tr>..<
56c0: 74 72 20 62 67 63 6f 6c 6f 72 3d 22 23 64 66 64 tr bgcolor="#dfd
56d0: 64 63 30 22 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 dc0">...<td alig
56e0: 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 4c 4c n="center"><b>LL
56f0: 5f 4a 50 32 3c 2f 62 3e 20 3c 69 3e 6c 6f 73 73 _JP2</b> <i>loss
5700: 6c 65 73 73 20 4a 70 65 67 32 30 30 30 3c 2f 69 less Jpeg2000</i
5710: 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d ></td><td align=
5720: 22 72 69 67 68 74 22 3e 33 32 33 20 4d 42 3c 2f "right">323 MB</
5730: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
5740: 6e 74 65 72 22 3e 31 2e 34 39 3c 2f 74 64 3e 3c nter">1.49</td><
5750: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
5760: 3e 34 6d 69 6e 20 32 36 73 65 63 3c 2f 74 64 3e >4min 26sec</td>
5770: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 <td align="right
5780: 22 3e 32 6d 69 6e 20 32 31 73 65 63 3c 2f 74 64 ">2min 21sec</td
5790: 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a >..</tr>..<tr>..
57a0: 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 .<td align="cent
57b0: 65 72 22 3e 3c 62 3e 43 48 41 52 4c 53 3c 2f 62 er"><b>CHARLS</b
57c0: 3e 20 3c 69 3e 6c 6f 73 73 6c 65 73 73 20 4a 50 > <i>lossless JP
57d0: 45 47 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 EG</i></td><td a
57e0: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 33 33 39 lign="right">339
57f0: 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 MB</td><td alig
5800: 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e 34 32 3c n="center">1.42<
5810: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 /td><td align="r
5820: 69 67 68 74 22 3e 32 6d 69 6e 20 33 38 73 65 63 ight">2min 38sec
5830: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
5840: 72 69 67 68 74 22 3e 32 6d 69 6e 20 36 73 65 63 right">2min 6sec
5850: 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 2f </td>..</tr>..</
5860: 74 61 62 6c 65 3e 0d 0a 3c 62 3e 51 75 69 63 6b table>..<b>Quick
5870: 20 61 73 73 65 73 73 6d 65 6e 74 3a 3c 2f 62 3e assessment:</b>
5880: 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 74 68 69 73 ..<ul>..<li>this
5890: 20 74 65 73 74 20 77 61 73 20 62 61 73 65 64 20 test was based
58a0: 6f 6e 20 61 20 73 61 6d 70 6c 65 20 6f 66 20 32 on a sample of 2
58b0: 35 20 42 26 57 20 54 49 46 46 2b 54 46 57 20 53 5 B&W TIFF+TFW S
58c0: 65 63 74 69 6f 6e 73 20 28 66 6f 72 6d 69 6e 67 ections (forming
58d0: 20 61 20 35 78 35 20 73 71 75 61 72 65 29 20 63 a 5x5 square) c
58e0: 65 6e 74 65 72 65 64 20 61 72 6f 75 6e 64 20 74 entered around t
58f0: 68 65 20 63 69 74 79 20 6f 66 20 46 6c 6f 72 65 he city of Flore
5900: 6e 63 65 2e 3c 62 72 3e 0d 0a 54 68 65 20 6f 72 nce.<br>..The or
5910: 69 67 69 6e 61 6c 20 64 61 74 61 73 65 74 20 69 iginal dataset i
5920: 73 20 74 68 65 20 4f 72 74 6f 70 68 6f 74 6f 20 s the Ortophoto
5930: 69 6d 61 67 65 72 79 20 28 79 65 61 72 20 31 39 imagery (year 19
5940: 37 38 3b 20 73 63 61 6c 65 20 31 3a 31 30 30 30 78; scale 1:1000
5950: 30 29 20 70 75 62 6c 69 73 68 65 64 20 62 79 20 0) published by
5960: 3c 61 20 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f <a href="http://
5970: 77 77 77 35 30 32 2e 72 65 67 69 6f 6e 65 2e 74 www502.regione.t
5980: 6f 73 63 61 6e 61 2e 69 74 2f 67 65 6f 73 63 6f oscana.it/geosco
5990: 70 69 6f 2f 63 61 72 74 6f 74 65 63 61 2e 68 74 pio/cartoteca.ht
59a0: 6d 6c 22 3e 54 75 73 63 61 6e 79 3c 2f 61 3e 3c ml">Tuscany</a><
59b0: 2f 6c 69 3e 0d 0a 3c 6c 69 3e 61 73 20 77 65 20 /li>..<li>as we
59c0: 77 65 72 65 20 65 78 70 65 63 74 69 6e 67 20 66 were expecting f
59d0: 72 6f 6d 20 6f 75 72 20 70 72 65 76 69 6f 75 73 rom our previous
59e0: 20 74 65 73 74 73 2c 20 6c 6f 73 73 6c 65 73 73 tests, lossless
59f0: 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 63 61 6e compression can
5a00: 20 76 65 72 79 20 64 69 66 66 69 63 75 6c 74 20 very difficult
5a10: 72 65 61 63 68 20 73 74 72 6f 6e 67 20 63 6f 6d reach strong com
5a20: 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f 73 20 pression ratios
5a30: 77 68 65 6e 20 61 70 70 6c 69 65 64 20 74 6f 20 when applied to
5a40: 70 68 6f 74 6f 67 72 61 70 68 69 63 20 69 6d 61 photographic ima
5a50: 67 65 73 2e 3c 2f 6c 69 3e 20 0d 0a 3c 6c 69 3e ges.</li> ..<li>
5a60: 69 6e 20 74 68 69 73 20 73 70 65 63 69 66 69 63 in this specific
5a70: 20 74 65 73 74 20 44 45 46 4c 41 54 45 2c 20 5a test DEFLATE, Z
5a80: 53 54 44 2c 20 61 6e 64 20 50 4e 47 20 73 63 6f STD, and PNG sco
5a90: 72 65 20 6d 6f 72 65 20 6f 72 20 6c 65 73 73 20 re more or less
5aa0: 65 71 75 69 76 61 6c 65 6e 74 20 63 6f 6d 70 72 equivalent compr
5ab0: 65 73 73 69 6f 6e 20 72 61 74 69 6f 73 2c 20 61 ession ratios, a
5ac0: 6e 64 20 74 68 65 79 20 6d 61 72 6b 20 76 65 72 nd they mark ver
5ad0: 79 20 73 69 6d 69 6c 61 72 20 63 6f 6d 70 72 65 y similar compre
5ae0: 73 73 69 6f 6e 20 61 6e 64 20 64 65 63 6f 6d 70 ssion and decomp
5af0: 72 65 73 73 69 6f 6e 20 74 69 6d 69 6e 67 73 2e ression timings.
5b00: 3c 62 72 3e 0d 0a 49 74 27 73 20 77 6f 72 74 68 <br>..It's worth
5b10: 20 6e 6f 74 69 6e 67 20 74 68 61 74 20 44 45 46 noting that DEF
5b20: 4c 41 54 45 2c 20 5a 53 54 44 20 61 6e 64 20 50 LATE, ZSTD and P
5b30: 4e 47 20 72 65 71 75 69 72 65 20 6d 6f 72 65 20 NG require more
5b40: 6f 72 20 6c 65 73 73 20 74 68 65 20 73 61 6d 65 or less the same
5b50: 20 64 65 63 6f 6d 70 72 65 73 73 69 6f 6e 20 74 decompression t
5b60: 69 6d 65 20 74 68 61 6e 20 4e 4f 4e 45 20 28 75 ime than NONE (u
5b70: 6e 63 6f 6d 70 72 65 73 73 65 64 29 2c 20 73 6f ncompressed), so
5b80: 20 74 68 65 79 20 64 6f 6e 27 74 20 63 61 75 73 they don't caus
5b90: 65 20 61 6e 79 20 72 65 6e 64 65 72 69 6e 67 20 e any rendering
5ba0: 62 6f 74 74 6c 65 6e 65 63 6b 2e 3c 2f 6c 69 3e bottleneck.</li>
5bb0: 20 0d 0a 3c 6c 69 3e 61 73 20 77 65 20 77 65 72 ..<li>as we wer
5bc0: 65 20 65 78 70 65 63 74 69 6e 67 20 4c 5a 34 20 e expecting LZ4
5bd0: 69 73 20 66 61 73 74 20 62 75 74 20 75 6e 61 62 is fast but unab
5be0: 6c 65 20 74 6f 20 72 65 61 63 68 20 61 20 64 65 le to reach a de
5bf0: 63 65 6e 74 20 63 6f 6d 70 72 65 73 73 69 6f 6e cent compression
5c00: 20 72 61 74 69 6f 2e 3c 2f 6c 69 3e 0d 0a 3c 6c ratio.</li>..<l
5c10: 69 3e 4c 5a 4d 41 20 63 6f 6e 66 69 72 6d 73 20 i>LZMA confirms
5c20: 74 6f 20 62 65 20 76 65 72 79 20 73 6c 6f 77 20 to be very slow
5c30: 62 6f 74 68 20 77 68 65 6e 20 63 6f 6d 70 72 65 both when compre
5c40: 73 73 69 6e 67 20 61 6e 64 20 64 65 63 6f 6d 70 ssing and decomp
5c50: 72 65 73 73 69 6e 67 2e 3c 2f 6c 69 3e 0d 0a 3c ressing.</li>..<
5c60: 6c 69 3e 54 68 65 20 72 65 61 6c 20 64 65 6c 75 li>The real delu
5c70: 73 69 6f 6e 20 63 6f 6d 65 73 20 66 72 6f 6d 20 sion comes from
5c80: 4c 4c 5f 57 45 42 50 2c 20 4c 4c 5f 4a 50 32 20 LL_WEBP, LL_JP2
5c90: 61 6e 64 20 43 48 41 52 4c 53 2e 3c 62 72 3e 0d and CHARLS.<br>.
5ca0: 0a 54 68 65 73 65 20 61 6c 67 6f 72 69 74 68 6d .These algorithm
5cb0: 73 20 61 72 65 20 73 70 65 63 69 66 69 63 61 6c s are specifical
5cc0: 6c 79 20 64 65 73 69 67 6e 65 64 20 66 6f 72 20 ly designed for
5cd0: 63 6f 6d 70 72 65 73 73 69 6e 67 20 70 68 6f 74 compressing phot
5ce0: 6f 67 72 61 70 68 69 63 20 69 6d 61 67 65 72 79 ographic imagery
5cf0: 2c 20 62 75 74 20 74 68 65 79 20 61 72 65 20 75 , but they are u
5d00: 6e 61 62 6c 65 20 74 6f 20 6f 75 74 70 65 72 66 nable to outperf
5d10: 6f 72 6d 20 74 68 65 20 6f 74 68 65 72 20 67 65 orm the other ge
5d20: 6e 65 72 69 63 20 6d 75 6c 74 69 70 75 72 70 6f neric multipurpo
5d30: 73 65 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 61 se compression a
5d40: 6c 67 6f 72 69 74 68 6d 73 2e 3c 62 72 3e 0d 0a lgorithms.<br>..
5d50: 54 68 65 79 20 73 63 6f 72 65 20 6d 61 72 67 69 They score margi
5d60: 6e 61 6c 6c 79 20 62 65 74 74 65 72 20 63 6f 6d nally better com
5d70: 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f 73 2c pression ratios,
5d80: 20 62 75 74 20 74 68 65 79 20 61 72 65 20 64 65 but they are de
5d90: 61 64 6c 79 20 73 6c 6f 77 2e 0d 0a 54 68 65 20 adly slow...The
5da0: 67 61 6d 65 20 69 73 20 20 6e 6f 74 20 77 6f 72 game is not wor
5db0: 74 68 20 74 68 65 20 63 61 6e 64 6c 65 2e 3c 2f th the candle.</
5dc0: 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 62 72 3e li>..</ul>..<br>
5dd0: 0d 0a 3c 62 72 3e 0d 0a 3c 68 33 3e 54 65 73 74 ..<br>..<h3>Test
5de0: 20 23 36 20 2d 20 52 47 42 20 52 61 73 74 65 72 #6 - RGB Raster
5df0: 20 43 6f 76 65 72 61 67 65 3c 2f 68 33 3e 0d 0a Coverage</h3>..
5e00: 3c 74 61 62 6c 65 20 63 65 6c 6c 73 70 61 63 69 <table cellspaci
5e10: 6e 67 3d 22 36 22 20 63 65 6c 6c 70 61 64 64 69 ng="6" cellpaddi
5e20: 6e 67 3d 22 38 22 20 62 6f 72 64 65 72 3d 22 31 ng="8" border="1
5e30: 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66 66 66 " bgcolor="#ffff
5e40: 65 30 22 3e 0d 0a 3c 74 72 3e 3c 74 68 20 62 67 e0">..<tr><th bg
5e50: 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e color="#d0ff90">
5e60: 43 6f 6d 70 72 65 73 73 69 6f 6e 20 4d 65 74 68 Compression Meth
5e70: 6f 64 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c od</th><th bgcol
5e80: 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 44 42 20 or="#d0ff90">DB
5e90: 53 69 7a 65 3c 2f 74 68 3e 3c 74 68 20 62 67 63 Size</th><th bgc
5ea0: 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 43 olor="#d0ff90">C
5eb0: 6f 6d 70 72 65 73 73 69 6f 6e 20 52 61 74 69 6f ompression Ratio
5ec0: 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 </th><th bgcolor
5ed0: 3d 22 23 64 30 66 66 39 30 22 3e 43 6f 6d 70 72 ="#d0ff90">Compr
5ee0: 65 73 73 69 6f 6e 20 54 69 6d 65 3c 2f 74 68 3e ession Time</th>
5ef0: 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 <th bgcolor="#d0
5f00: 66 66 39 30 22 3e 44 65 63 6f 6d 70 72 65 73 73 ff90">Decompress
5f10: 69 6f 6e 20 54 69 6d 65 3c 2f 74 68 3e 3c 2f 74 ion Time</th></t
5f20: 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20 61 r>..<tr>...<td a
5f30: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 lign="center"><b
5f40: 3e 4e 4f 4e 45 3c 2f 62 3e 20 3c 69 3e 6e 6f 20 >NONE</b> <i>no
5f50: 63 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c compression</i><
5f60: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 /td><td align="r
5f70: 69 67 68 74 22 3e 31 2e 35 31 20 47 42 3c 2f 74 ight">1.51 GB</t
5f80: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
5f90: 74 65 72 22 3e 31 2e 30 30 3c 2f 74 64 3e 3c 74 ter">1.00</td><t
5fa0: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e d align="right">
5fb0: 31 6d 69 6e 20 31 37 73 65 63 3c 2f 74 64 3e 3c 1min 17sec</td><
5fc0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
5fd0: 3e 31 6d 69 6e 20 35 31 73 65 63 3c 2f 74 64 3e >1min 51sec</td>
5fe0: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63 ..</tr>..<tr bgc
5ff0: 6f 6c 6f 72 3d 22 23 64 66 64 64 63 30 22 3e 0d olor="#dfddc0">.
6000: 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e ..<td align="cen
6010: 74 65 72 22 3e 3c 62 3e 4c 5a 34 3c 2f 62 3e 20 ter"><b>LZ4</b>
6020: 3c 69 3e 76 65 72 79 20 66 61 73 74 20 63 6f 6d <i>very fast com
6030: 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 64 pression</i></td
6040: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 ><td align="righ
6050: 74 22 3e 31 2e 32 31 20 47 42 3c 2f 74 64 3e 3c t">1.21 GB</td><
6060: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
6070: 22 3e 31 2e 32 35 3c 2f 74 64 3e 3c 74 64 20 61 ">1.25</td><td a
6080: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69 lign="right">1mi
6090: 6e 20 33 31 73 65 63 3c 2f 74 64 3e 3c 74 64 20 n 31sec</td><td
60a0: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d align="right">1m
60b0: 69 6e 20 34 37 73 65 63 3c 2f 74 64 3e 0d 0a 3c in 47sec</td>..<
60c0: 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 /tr>..<tr>...<td
60d0: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
60e0: 3c 62 3e 44 45 46 4c 41 54 45 3c 2f 62 3e 20 3c <b>DEFLATE</b> <
60f0: 69 3e 7a 69 70 20 63 6f 6d 70 72 65 73 73 69 6f i>zip compressio
6100: 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c n</i></td><td al
6110: 69 67 6e 3d 22 72 69 67 68 74 22 3e 38 30 30 20 ign="right">800
6120: 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e MB</td><td align
6130: 3d 22 63 65 6e 74 65 72 22 3e 31 2e 39 34 3c 2f ="center">1.94</
6140: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 td><td align="ri
6150: 67 68 74 22 3e 31 6d 69 6e 20 35 36 73 65 63 3c ght">1min 56sec<
6160: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 /td><td align="r
6170: 69 67 68 74 22 3e 31 6d 69 6e 20 34 30 73 65 63 ight">1min 40sec
6180: 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 </td>..</tr>..<t
6190: 72 20 62 67 63 6f 6c 6f 72 3d 22 23 64 66 64 64 r bgcolor="#dfdd
61a0: 63 30 22 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e c0">...<td align
61b0: 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 5a 53 54 ="center"><b>ZST
61c0: 44 3c 2f 62 3e 20 3c 69 3e 66 61 73 74 20 63 6f D</b> <i>fast co
61d0: 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 mpression</i></t
61e0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 d><td align="rig
61f0: 68 74 22 3e 38 31 36 20 4d 42 3c 2f 74 64 3e 3c ht">816 MB</td><
6200: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
6210: 22 3e 31 2e 39 30 3c 2f 74 64 3e 3c 74 64 20 61 ">1.90</td><td a
6220: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69 lign="right">1mi
6230: 6e 20 32 39 73 65 63 3c 2f 74 64 3e 3c 74 64 20 n 29sec</td><td
6240: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d align="right">1m
6250: 69 6e 20 33 37 73 65 63 3c 2f 74 64 3e 0d 0a 3c in 37sec</td>..<
6260: 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 /tr>..<tr>...<td
6270: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
6280: 3c 62 3e 4c 5a 4d 41 3c 2f 62 3e 20 3c 69 3e 37 <b>LZMA</b> <i>7
6290: 2d 7a 69 70 20 63 6f 6d 70 72 65 73 73 69 6f 6e -zip compression
62a0: 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 </i></td><td ali
62b0: 67 6e 3d 22 72 69 67 68 74 22 3e 37 31 30 20 4d gn="right">710 M
62c0: 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d B</td><td align=
62d0: 22 63 65 6e 74 65 72 22 3e 32 2e 31 38 3c 2f 74 "center">2.18</t
62e0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 d><td align="rig
62f0: 68 74 22 3e 37 6d 69 6e 20 32 33 73 65 63 3c 2f ht">7min 23sec</
6300: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 td><td align="ri
6310: 67 68 74 22 3e 32 6d 69 6e 20 31 31 73 65 63 3c ght">2min 11sec<
6320: 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 /td>..</tr>..<tr
6330: 20 62 67 63 6f 6c 6f 72 3d 22 23 64 66 64 64 63 bgcolor="#dfddc
6340: 30 22 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 0">...<td align=
6350: 22 63 65 6e 74 65 72 22 3e 3c 62 3e 50 4e 47 3c "center"><b>PNG<
6360: 2f 62 3e 20 3c 69 3e 6c 6f 73 73 6c 65 73 73 20 /b> <i>lossless
6370: 69 6d 61 67 65 20 66 6f 72 6d 61 74 3c 2f 69 3e image format</i>
6380: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
6390: 72 69 67 68 74 22 3e 38 33 30 20 4d 42 3c 2f 74 right">830 MB</t
63a0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
63b0: 74 65 72 22 3e 31 2e 38 36 3c 2f 74 64 3e 3c 74 ter">1.86</td><t
63c0: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e d align="right">
63d0: 32 6d 69 6e 20 32 39 73 65 63 3c 2f 74 64 3e 3c 2min 29sec</td><
63e0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
63f0: 3e 31 6d 69 6e 20 34 39 73 65 63 3c 2f 74 64 3e >1min 49sec</td>
6400: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 ..</tr>..<tr>...
6410: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
6420: 72 22 3e 3c 62 3e 4c 4c 5f 57 45 42 50 3c 2f 62 r"><b>LL_WEBP</b
6430: 3e 20 3c 69 3e 6c 6f 73 73 6c 65 73 73 20 57 65 > <i>lossless We
6440: 62 50 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 bP</i></td><td a
6450: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 35 32 35 lign="right">525
6460: 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 MB</td><td alig
6470: 6e 3d 22 63 65 6e 74 65 72 22 3e 32 2e 39 35 3c n="center">2.95<
6480: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 /td><td align="r
6490: 69 67 68 74 22 3e 37 6d 69 6e 20 31 38 73 65 63 ight">7min 18sec
64a0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
64b0: 72 69 67 68 74 22 3e 31 6d 69 6e 20 34 38 73 65 right">1min 48se
64c0: 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c c</td>..</tr>..<
64d0: 74 72 20 62 67 63 6f 6c 6f 72 3d 22 23 64 66 64 tr bgcolor="#dfd
64e0: 64 63 30 22 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 dc0">...<td alig
64f0: 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 4c 4c n="center"><b>LL
6500: 5f 4a 50 32 3c 2f 62 3e 20 3c 69 3e 6c 6f 73 73 _JP2</b> <i>loss
6510: 6c 65 73 73 20 4a 70 65 67 32 30 30 30 3c 2f 69 less Jpeg2000</i
6520: 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d ></td><td align=
6530: 22 72 69 67 68 74 22 3e 38 30 32 20 4d 42 3c 2f "right">802 MB</
6540: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
6550: 6e 74 65 72 22 3e 31 2e 39 32 3c 2f 74 64 3e 3c nter">1.92</td><
6560: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
6570: 3e 31 31 6d 69 6e 20 33 31 73 65 63 3c 2f 74 64 >11min 31sec</td
6580: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 ><td align="righ
6590: 74 22 3e 33 6d 69 6e 20 31 36 73 65 63 3c 2f 74 t">3min 16sec</t
65a0: 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d d>..</tr>..<tr>.
65b0: 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e ..<td align="cen
65c0: 74 65 72 22 3e 3c 62 3e 43 48 41 52 4c 53 3c 2f ter"><b>CHARLS</
65d0: 62 3e 20 3c 69 3e 6c 6f 73 73 6c 65 73 73 20 4a b> <i>lossless J
65e0: 50 45 47 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 PEG</i></td><td
65f0: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 39 31 align="right">91
6600: 32 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 2 MB</td><td ali
6610: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e 37 30 gn="center">1.70
6620: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
6630: 72 69 67 68 74 22 3e 37 6d 69 6e 20 35 34 73 65 right">7min 54se
6640: 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d c</td><td align=
6650: 22 72 69 67 68 74 22 3e 32 6d 69 6e 20 34 37 73 "right">2min 47s
6660: 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a ec</td>..</tr>..
6670: 3c 2f 74 61 62 6c 65 3e 0d 0a 3c 62 3e 51 75 69 </table>..<b>Qui
6680: 63 6b 20 61 73 73 65 73 73 6d 65 6e 74 3a 3c 2f ck assessment:</
6690: 62 3e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 74 68 b>..<ul>..<li>th
66a0: 69 73 20 74 65 73 74 20 77 61 73 20 62 61 73 65 is test was base
66b0: 64 20 6f 6e 20 61 20 73 61 6d 70 6c 65 20 6f 66 d on a sample of
66c0: 20 39 20 52 47 42 20 54 49 46 46 2b 54 46 57 20 9 RGB TIFF+TFW
66d0: 53 65 63 74 69 6f 6e 73 20 28 66 6f 72 6d 69 6e Sections (formin
66e0: 67 20 61 20 33 78 33 20 73 71 75 61 72 65 29 20 g a 3x3 square)
66f0: 63 65 6e 74 65 72 65 64 20 61 72 6f 75 6e 64 20 centered around
6700: 74 68 65 20 74 6f 77 6e 20 6f 66 20 53 61 6e 20 the town of San
6710: 47 69 6f 76 61 6e 6e 69 20 56 61 6c 64 61 72 6e Giovanni Valdarn
6720: 6f 2e 3c 62 72 3e 0d 0a 54 68 65 20 6f 72 69 67 o.<br>..The orig
6730: 69 6e 61 6c 20 64 61 74 61 73 65 74 20 69 73 20 inal dataset is
6740: 74 68 65 20 65 78 61 63 74 6c 79 20 74 68 65 20 the exactly the
6750: 73 61 6d 65 20 77 65 27 6c 6c 20 73 65 65 20 69 same we'll see i
6760: 6e 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 n the following
6770: 74 65 73 74 2c 20 62 75 74 20 69 6e 20 74 68 69 test, but in thi
6780: 73 20 63 61 73 65 20 74 68 65 20 4e 65 61 72 20 s case the Near
6790: 49 6e 66 72 61 72 65 64 20 73 70 65 63 74 72 61 Infrared spectra
67a0: 6c 20 62 61 6e 64 20 77 61 73 20 63 6f 6d 70 6c l band was compl
67b0: 65 74 65 6c 79 20 72 65 6d 6f 76 65 64 2e 3c 2f etely removed.</
67c0: 6c 69 3e 0d 0a 3c 6c 69 3e 74 68 69 73 20 74 65 li>..<li>this te
67d0: 73 74 20 73 69 6d 70 6c 79 20 63 6f 6e 66 69 72 st simply confir
67e0: 6d 73 20 74 68 65 20 67 65 6e 65 72 61 6c 20 70 ms the general p
67f0: 61 74 74 65 72 6e 20 77 65 27 76 65 20 61 6c 72 attern we've alr
6800: 65 61 64 79 20 73 65 65 6e 20 61 62 6f 75 74 20 eady seen about
6810: 47 72 61 79 73 63 61 6c 65 2e 3c 2f 6c 69 3e 0d Grayscale.</li>.
6820: 0a 3c 6c 69 3e 74 68 65 20 75 6e 69 71 75 65 20 .<li>the unique
6830: 65 78 63 65 70 74 69 6f 6e 20 69 73 20 4c 4c 5f exception is LL_
6840: 57 45 42 50 2c 20 74 68 61 74 20 69 6e 20 74 68 WEBP, that in th
6850: 69 73 20 63 61 73 65 20 73 63 6f 72 65 73 20 74 is case scores t
6860: 68 65 20 62 65 73 74 20 63 6f 6d 70 72 65 73 73 he best compress
6870: 69 6f 6e 20 72 61 74 69 6f 20 6f 66 20 74 68 65 ion ratio of the
6880: 6d 20 61 6c 6c 2c 20 61 6e 64 20 6d 61 72 6b 73 m all, and marks
6890: 20 61 20 66 61 69 72 6c 79 20 67 6f 6f 64 20 64 a fairly good d
68a0: 65 63 6f 6d 70 72 65 73 73 69 6f 6e 20 74 69 6d ecompression tim
68b0: 65 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a e.</li>..</ul>..
68c0: 3c 62 72 3e 0d 0a 3c 62 72 3e 0d 0a 3c 68 33 3e <br>..<br>..<h3>
68d0: 54 65 73 74 20 23 37 20 2d 20 4d 75 6c 74 69 73 Test #7 - Multis
68e0: 70 65 63 74 72 61 6c 20 28 34 2d 62 61 6e 64 73 pectral (4-bands
68f0: 29 20 52 61 73 74 65 72 20 43 6f 76 65 72 61 67 ) Raster Coverag
6900: 65 3c 2f 68 33 3e 0d 0a 3c 74 61 62 6c 65 20 63 e</h3>..<table c
6910: 65 6c 6c 73 70 61 63 69 6e 67 3d 22 36 22 20 63 ellspacing="6" c
6920: 65 6c 6c 70 61 64 64 69 6e 67 3d 22 38 22 20 62 ellpadding="8" b
6930: 6f 72 64 65 72 3d 22 31 22 20 62 67 63 6f 6c 6f order="1" bgcolo
6940: 72 3d 22 23 66 66 66 66 65 30 22 3e 0d 0a 3c 74 r="#ffffe0">..<t
6950: 72 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 r><th bgcolor="#
6960: 64 30 66 66 39 30 22 3e 43 6f 6d 70 72 65 73 73 d0ff90">Compress
6970: 69 6f 6e 20 4d 65 74 68 6f 64 3c 2f 74 68 3e 3c ion Method</th><
6980: 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 th bgcolor="#d0f
6990: 66 39 30 22 3e 44 42 20 53 69 7a 65 3c 2f 74 68 f90">DB Size</th
69a0: 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 ><th bgcolor="#d
69b0: 30 66 66 39 30 22 3e 43 6f 6d 70 72 65 73 73 69 0ff90">Compressi
69c0: 6f 6e 20 52 61 74 69 6f 3c 2f 74 68 3e 3c 74 68 on Ratio</th><th
69d0: 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 bgcolor="#d0ff9
69e0: 30 22 3e 43 6f 6d 70 72 65 73 73 69 6f 6e 20 54 0">Compression T
69f0: 69 6d 65 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f ime</th><th bgco
6a00: 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 44 65 lor="#d0ff90">De
6a10: 63 6f 6d 70 72 65 73 73 69 6f 6e 20 54 69 6d 65 compression Time
6a20: 3c 2f 74 68 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e </th></tr>..<tr>
6a30: 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 ...<td align="ce
6a40: 6e 74 65 72 22 3e 3c 62 3e 4e 4f 4e 45 3c 2f 62 nter"><b>NONE</b
6a50: 3e 20 3c 69 3e 6e 6f 20 63 6f 6d 70 72 65 73 73 > <i>no compress
6a60: 69 6f 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 ion</i></td><td
6a70: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 32 2e align="right">2.
6a80: 30 31 20 47 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 01 GB</td><td al
6a90: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e 30 ign="center">1.0
6aa0: 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 0</td><td align=
6ab0: 22 72 69 67 68 74 22 3e 33 6d 69 6e 20 31 38 73 "right">3min 18s
6ac0: 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e ec</td><td align
6ad0: 3d 22 72 69 67 68 74 22 3e 31 6d 69 6e 20 35 35 ="right">1min 55
6ae0: 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d sec</td>..</tr>.
6af0: 0a 3c 74 72 20 62 67 63 6f 6c 6f 72 3d 22 23 64 .<tr bgcolor="#d
6b00: 66 64 64 63 30 22 3e 0d 0a 09 3c 74 64 20 61 6c fddc0">...<td al
6b10: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e ign="center"><b>
6b20: 4c 5a 34 3c 2f 62 3e 20 3c 69 3e 76 65 72 79 20 LZ4</b> <i>very
6b30: 66 61 73 74 20 63 6f 6d 70 72 65 73 73 69 6f 6e fast compression
6b40: 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 </i></td><td ali
6b50: 67 6e 3d 22 72 69 67 68 74 22 3e 31 2e 36 31 20 gn="right">1.61
6b60: 47 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e GB</td><td align
6b70: 3d 22 63 65 6e 74 65 72 22 3e 31 2e 32 34 3c 2f ="center">1.24</
6b80: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 td><td align="ri
6b90: 67 68 74 22 3e 33 6d 69 6e 20 34 31 73 65 63 3c ght">3min 41sec<
6ba0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 /td><td align="r
6bb0: 69 67 68 74 22 3e 31 6d 69 6e 20 34 38 73 65 63 ight">1min 48sec
6bc0: 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 </td>..</tr>..<t
6bd0: 72 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 r>...<td align="
6be0: 63 65 6e 74 65 72 22 3e 3c 62 3e 44 45 46 4c 41 center"><b>DEFLA
6bf0: 54 45 3c 2f 62 3e 20 3c 69 3e 7a 69 70 20 63 6f TE</b> <i>zip co
6c00: 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 mpression</i></t
6c10: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 d><td align="rig
6c20: 68 74 22 3e 31 2e 30 32 20 47 42 3c 2f 74 64 3e ht">1.02 GB</td>
6c30: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
6c40: 72 22 3e 31 2e 39 37 3c 2f 74 64 3e 3c 74 64 20 r">1.97</td><td
6c50: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 35 6d align="right">5m
6c60: 69 6e 20 35 73 65 63 3c 2f 74 64 3e 3c 74 64 20 in 5sec</td><td
6c70: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d align="right">1m
6c80: 69 6e 20 34 32 73 65 63 3c 2f 74 64 3e 0d 0a 3c in 42sec</td>..<
6c90: 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63 6f 6c 6f /tr>..<tr bgcolo
6ca0: 72 3d 22 23 64 66 64 64 63 30 22 3e 0d 0a 09 3c r="#dfddc0">...<
6cb0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
6cc0: 22 3e 3c 62 3e 5a 53 54 44 3c 2f 62 3e 20 3c 69 "><b>ZSTD</b> <i
6cd0: 3e 66 61 73 74 20 63 6f 6d 70 72 65 73 73 69 6f >fast compressio
6ce0: 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c n</i></td><td al
6cf0: 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 2e 30 37 ign="right">1.07
6d00: 20 47 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 GB</td><td alig
6d10: 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e 38 37 3c n="center">1.87<
6d20: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 /td><td align="r
6d30: 69 67 68 74 22 3e 33 6d 69 6e 20 33 35 73 65 63 ight">3min 35sec
6d40: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
6d50: 72 69 67 68 74 22 3e 31 6d 69 6e 20 34 36 73 65 right">1min 46se
6d60: 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c c</td>..</tr>..<
6d70: 74 72 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d tr>...<td align=
6d80: 22 63 65 6e 74 65 72 22 3e 3c 62 3e 4c 5a 4d 41 "center"><b>LZMA
6d90: 3c 2f 62 3e 20 3c 69 3e 37 2d 7a 69 70 20 63 6f </b> <i>7-zip co
6da0: 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 mpression</i></t
6db0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 d><td align="rig
6dc0: 68 74 22 3e 38 38 32 20 4d 42 3c 2f 74 64 3e 3c ht">882 MB</td><
6dd0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
6de0: 22 3e 32 2e 33 34 3c 2f 74 64 3e 3c 74 64 20 61 ">2.34</td><td a
6df0: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 31 6d lign="right">11m
6e00: 69 6e 20 37 73 65 63 3c 2f 74 64 3e 3c 74 64 20 in 7sec</td><td
6e10: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 32 6d align="right">2m
6e20: 69 6e 20 31 35 73 65 63 3c 2f 74 64 3e 0d 0a 3c in 15sec</td>..<
6e30: 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63 6f 6c 6f /tr>..<tr bgcolo
6e40: 72 3d 22 23 64 66 64 64 63 30 22 3e 0d 0a 09 3c r="#dfddc0">...<
6e50: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
6e60: 22 3e 3c 62 3e 50 4e 47 3c 2f 62 3e 20 3c 69 3e "><b>PNG</b> <i>
6e70: 6c 6f 73 73 6c 65 73 73 20 69 6d 61 67 65 20 66 lossless image f
6e80: 6f 72 6d 61 74 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 ormat</i></td><t
6e90: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e d align="right">
6ea0: 31 2e 30 38 20 47 42 3c 2f 74 64 3e 3c 74 64 20 1.08 GB</td><td
6eb0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 align="center">1
6ec0: 2e 38 35 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 .85</td><td alig
6ed0: 6e 3d 22 72 69 67 68 74 22 3e 34 6d 69 6e 20 34 n="right">4min 4
6ee0: 33 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 3sec</td><td ali
6ef0: 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69 6e 20 gn="right">1min
6f00: 34 37 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 47sec</td>..</tr
6f10: 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20 61 6c >..<tr>...<td al
6f20: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e ign="center"><b>
6f30: 4c 4c 5f 57 45 42 50 3c 2f 62 3e 20 3c 69 3e 6c LL_WEBP</b> <i>l
6f40: 6f 73 73 6c 65 73 73 20 57 65 62 50 3c 2f 69 3e ossless WebP</i>
6f50: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
6f60: 72 69 67 68 74 22 3e 37 35 38 20 4d 42 3c 2f 74 right">758 MB</t
6f70: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
6f80: 74 65 72 22 3e 32 2e 37 32 3c 2f 74 64 3e 3c 74 ter">2.72</td><t
6f90: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e d align="right">
6fa0: 39 6d 69 6e 20 33 36 73 65 63 3c 2f 74 64 3e 3c 9min 36sec</td><
6fb0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
6fc0: 3e 31 6d 69 6e 20 35 31 73 65 63 3c 2f 74 64 3e >1min 51sec</td>
6fd0: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63 ..</tr>..<tr bgc
6fe0: 6f 6c 6f 72 3d 22 23 64 66 64 64 63 30 22 3e 0d olor="#dfddc0">.
6ff0: 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e ..<td align="cen
7000: 74 65 72 22 3e 3c 62 3e 4c 4c 5f 4a 50 32 3c 2f ter"><b>LL_JP2</
7010: 62 3e 20 3c 69 3e 6c 6f 73 73 6c 65 73 73 20 4a b> <i>lossless J
7020: 70 65 67 32 30 30 30 3c 2f 69 3e 3c 2f 74 64 3e peg2000</i></td>
7030: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 <td align="right
7040: 22 3e 31 2e 30 35 20 47 42 3c 2f 74 64 3e 3c 74 ">1.05 GB</td><t
7050: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
7060: 3e 31 2e 39 32 3c 2f 74 64 3e 3c 74 64 20 61 6c >1.92</td><td al
7070: 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 36 6d 69 ign="right">16mi
7080: 6e 20 32 33 73 65 63 3c 2f 74 64 3e 3c 74 64 20 n 23sec</td><td
7090: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 33 6d align="right">3m
70a0: 69 6e 20 35 33 73 65 63 3c 2f 74 64 3e 0d 0a 3c in 53sec</td>..<
70b0: 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a /tr>..</table>..
70c0: 3c 62 3e 51 75 69 63 6b 20 61 73 73 65 73 73 6d <b>Quick assessm
70d0: 65 6e 74 3a 3c 2f 62 3e 0d 0a 3c 75 6c 3e 0d 0a ent:</b>..<ul>..
70e0: 3c 6c 69 3e 74 68 69 73 20 74 65 73 74 20 77 61 <li>this test wa
70f0: 73 20 62 61 73 65 64 20 6f 6e 20 61 20 73 61 6d s based on a sam
7100: 70 6c 65 20 6f 66 20 39 20 34 2d 62 61 6e 64 73 ple of 9 4-bands
7110: 20 28 52 47 42 2b 4e 65 61 72 49 6e 66 72 61 72 (RGB+NearInfrar
7120: 65 64 29 20 54 49 46 46 2b 54 46 57 20 53 65 63 ed) TIFF+TFW Sec
7130: 74 69 6f 6e 73 20 28 66 6f 72 6d 69 6e 67 20 61 tions (forming a
7140: 20 33 78 33 20 73 71 75 61 72 65 29 20 63 65 6e 3x3 square) cen
7150: 74 65 72 65 64 20 61 72 6f 75 6e 64 20 74 68 65 tered around the
7160: 20 74 6f 77 6e 20 6f 66 20 53 61 6e 20 47 69 6f town of San Gio
7170: 76 61 6e 6e 69 20 56 61 6c 64 61 72 6e 6f 2e 3c vanni Valdarno.<
7180: 62 72 3e 0d 0a 54 68 65 20 6f 72 69 67 69 6e 61 br>..The origina
7190: 6c 20 64 61 74 61 73 65 74 20 69 73 20 74 68 65 l dataset is the
71a0: 20 4f 72 74 6f 70 68 6f 74 6f 20 69 6d 61 67 65 Ortophoto image
71b0: 72 79 20 28 79 65 61 72 20 32 30 31 33 3b 20 73 ry (year 2013; s
71c0: 63 61 6c 65 20 31 3a 32 30 30 30 29 20 70 75 62 cale 1:2000) pub
71d0: 6c 69 73 68 65 64 20 62 79 20 3c 61 20 68 72 65 lished by <a hre
71e0: 66 3d 22 68 74 74 70 3a 2f 2f 77 77 77 35 30 32 f="http://www502
71f0: 2e 72 65 67 69 6f 6e 65 2e 74 6f 73 63 61 6e 61 .regione.toscana
7200: 2e 69 74 2f 67 65 6f 73 63 6f 70 69 6f 2f 63 61 .it/geoscopio/ca
7210: 72 74 6f 74 65 63 61 2e 68 74 6d 6c 22 3e 54 75 rtoteca.html">Tu
7220: 73 63 61 6e 79 3c 2f 61 3e 3c 2f 6c 69 3e 0d 0a scany</a></li>..
7230: 3c 6c 69 3e 74 68 69 73 20 74 65 73 74 20 73 69 <li>this test si
7240: 6d 70 6c 79 20 63 6f 6e 66 69 72 6d 73 20 74 68 mply confirms th
7250: 65 20 67 65 6e 65 72 61 6c 20 70 61 74 74 65 72 e general patter
7260: 6e 20 77 65 27 76 65 20 61 6c 72 65 61 64 79 20 n we've already
7270: 73 65 65 6e 20 61 62 6f 75 74 20 47 72 61 79 73 seen about Grays
7280: 63 61 6c 65 20 61 6e 64 20 52 47 42 2e 3c 2f 6c cale and RGB.</l
7290: 69 3e 0d 0a 3c 6c 69 3e 69 6e 20 74 68 69 73 20 i>..<li>in this
72a0: 63 61 73 65 20 74 6f 6f 20 4c 4c 5f 57 45 42 50 case too LL_WEBP
72b0: 20 73 63 6f 72 65 73 20 74 68 65 20 62 65 73 74 scores the best
72c0: 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 compression rat
72d0: 69 6f 20 6f 66 20 74 68 65 6d 20 61 6c 6c 2c 20 io of them all,
72e0: 61 6e 64 20 6d 61 72 6b 73 20 61 20 66 61 69 72 and marks a fair
72f0: 6c 79 20 67 6f 6f 64 20 64 65 63 6f 6d 70 72 65 ly good decompre
7300: 73 73 69 6f 6e 20 74 69 6d 65 2e 3c 2f 6c 69 3e ssion time.</li>
7310: 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 62 72 3e 0d 0a 3c ..</ul>..<br>..<
7320: 62 72 3e 0d 0a 3c 68 33 3e 54 65 73 74 20 23 38 br>..<h3>Test #8
7330: 20 2d 20 44 61 74 61 67 72 69 64 20 52 61 73 74 - Datagrid Rast
7340: 65 72 20 43 6f 76 65 72 61 67 65 20 28 41 53 43 er Coverage (ASC
7350: 49 49 20 47 72 69 64 20 2d 20 66 6c 6f 61 74 69 II Grid - floati
7360: 6e 67 20 70 6f 69 6e 74 20 73 69 6e 67 6c 65 20 ng point single
7370: 70 72 65 63 69 73 69 6f 6e 29 3c 2f 68 33 3e 0d precision)</h3>.
7380: 0a 3c 74 61 62 6c 65 20 63 65 6c 6c 73 70 61 63 .<table cellspac
7390: 69 6e 67 3d 22 36 22 20 63 65 6c 6c 70 61 64 64 ing="6" cellpadd
73a0: 69 6e 67 3d 22 38 22 20 62 6f 72 64 65 72 3d 22 ing="8" border="
73b0: 31 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66 66 1" bgcolor="#fff
73c0: 66 65 30 22 3e 0d 0a 3c 74 72 3e 3c 74 68 20 62 fe0">..<tr><th b
73d0: 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 gcolor="#d0ff90"
73e0: 3e 43 6f 6d 70 72 65 73 73 69 6f 6e 20 4d 65 74 >Compression Met
73f0: 68 6f 64 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f hod</th><th bgco
7400: 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 44 42 lor="#d0ff90">DB
7410: 20 53 69 7a 65 3c 2f 74 68 3e 3c 74 68 20 62 67 Size</th><th bg
7420: 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e color="#d0ff90">
7430: 43 6f 6d 70 72 65 73 73 69 6f 6e 20 52 61 74 69 Compression Rati
7440: 6f 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f o</th><th bgcolo
7450: 72 3d 22 23 64 30 66 66 39 30 22 3e 43 6f 6d 70 r="#d0ff90">Comp
7460: 72 65 73 73 69 6f 6e 20 54 69 6d 65 3c 2f 74 68 ression Time</th
7470: 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 ><th bgcolor="#d
7480: 30 66 66 39 30 22 3e 44 65 63 6f 6d 70 72 65 73 0ff90">Decompres
7490: 73 69 6f 6e 20 54 69 6d 65 3c 2f 74 68 3e 3c 2f sion Time</th></
74a0: 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20 tr>..<tr>...<td
74b0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c align="center"><
74c0: 62 3e 4e 4f 4e 45 3c 2f 62 3e 20 3c 69 3e 6e 6f b>NONE</b> <i>no
74d0: 20 63 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e compression</i>
74e0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
74f0: 72 69 67 68 74 22 3e 32 2e 30 31 20 47 42 3c 2f right">2.01 GB</
7500: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 td><td align="ce
7510: 6e 74 65 72 22 3e 31 2e 30 30 3c 2f 74 64 3e 3c nter">1.00</td><
7520: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
7530: 3e 36 6d 69 6e 20 33 30 73 65 63 3c 2f 74 64 3e >6min 30sec</td>
7540: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 <td align="right
7550: 22 3e 32 6d 69 6e 20 36 73 65 63 3c 2f 74 64 3e ">2min 6sec</td>
7560: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63 ..</tr>..<tr bgc
7570: 6f 6c 6f 72 3d 22 23 64 66 64 64 63 30 22 3e 0d olor="#dfddc0">.
7580: 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e ..<td align="cen
7590: 74 65 72 22 3e 3c 62 3e 4c 5a 34 3c 2f 62 3e 20 ter"><b>LZ4</b>
75a0: 3c 69 3e 76 65 72 79 20 66 61 73 74 20 63 6f 6d <i>very fast com
75b0: 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 64 pression</i></td
75c0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 ><td align="righ
75d0: 74 22 3e 38 34 35 20 4d 42 3c 2f 74 64 3e 3c 74 t">845 MB</td><t
75e0: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 d align="center"
75f0: 3e 32 2e 34 35 3c 2f 74 64 3e 3c 74 64 20 61 6c >2.45</td><td al
7600: 69 67 6e 3d 22 72 69 67 68 74 22 3e 36 6d 69 6e ign="right">6min
7610: 20 33 36 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 36sec</td><td a
7620: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 32 6d 69 lign="right">2mi
7630: 6e 20 39 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 n 9sec</td>..</t
7640: 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20 61 r>..<tr>...<td a
7650: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 lign="center"><b
7660: 3e 44 45 46 4c 41 54 45 3c 2f 62 3e 20 3c 69 3e >DEFLATE</b> <i>
7670: 7a 69 70 20 63 6f 6d 70 72 65 73 73 69 6f 6e 3c zip compression<
7680: 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 /i></td><td alig
7690: 6e 3d 22 72 69 67 68 74 22 3e 36 32 33 20 4d 42 n="right">623 MB
76a0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
76b0: 63 65 6e 74 65 72 22 3e 33 2e 33 32 3c 2f 74 64 center">3.32</td
76c0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 ><td align="righ
76d0: 74 22 3e 37 6d 69 6e 20 32 73 65 63 3c 2f 74 64 t">7min 2sec</td
76e0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 ><td align="righ
76f0: 74 22 3e 32 6d 69 6e 20 36 73 65 63 3c 2f 74 64 t">2min 6sec</td
7700: 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 >..</tr>..<tr bg
7710: 63 6f 6c 6f 72 3d 22 23 64 66 64 64 63 30 22 3e color="#dfddc0">
7720: 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 ...<td align="ce
7730: 6e 74 65 72 22 3e 3c 62 3e 5a 53 54 44 3c 2f 62 nter"><b>ZSTD</b
7740: 3e 20 3c 69 3e 66 61 73 74 20 63 6f 6d 70 72 65 > <i>fast compre
7750: 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 ssion</i></td><t
7760: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e d align="right">
7770: 36 31 34 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 614 MB</td><td a
7780: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 33 2e lign="center">3.
7790: 33 36 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 36</td><td align
77a0: 3d 22 72 69 67 68 74 22 3e 36 6d 69 6e 20 32 36 ="right">6min 26
77b0: 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 sec</td><td alig
77c0: 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69 6e 20 35 n="right">1min 5
77d0: 35 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 5sec</td>..</tr>
77e0: 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20 61 6c 69 ..<tr>...<td ali
77f0: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 4c gn="center"><b>L
7800: 5a 4d 41 3c 2f 62 3e 20 3c 69 3e 37 2d 7a 69 70 ZMA</b> <i>7-zip
7810: 20 63 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e compression</i>
7820: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
7830: 72 69 67 68 74 22 3e 35 31 33 20 4d 42 3c 2f 74 right">513 MB</t
7840: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e d><td align="cen
7850: 74 65 72 22 3e 34 2e 30 33 3c 2f 74 64 3e 3c 74 ter">4.03</td><t
7860: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e d align="right">
7870: 31 31 6d 69 6e 20 32 30 73 65 63 3c 2f 74 64 3e 11min 20sec</td>
7880: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 <td align="right
7890: 22 3e 33 6d 69 6e 20 35 73 65 63 3c 2f 74 64 3e ">3min 5sec</td>
78a0: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 ..</tr>..</table
78b0: 3e 0d 0a 3c 62 3e 51 75 69 63 6b 20 61 73 73 65 >..<b>Quick asse
78c0: 73 73 6d 65 6e 74 3a 3c 2f 62 3e 0d 0a 3c 75 6c ssment:</b>..<ul
78d0: 3e 0d 0a 3c 6c 69 3e 74 68 69 73 20 74 65 73 74 >..<li>this test
78e0: 20 77 61 73 20 62 61 73 65 64 20 6f 6e 20 61 20 was based on a
78f0: 68 75 67 65 20 41 53 43 49 49 20 47 72 69 64 20 huge ASCII Grid
7900: 28 44 54 4d 2c 20 31 30 6d 20 78 20 31 30 6d 20 (DTM, 10m x 10m
7910: 63 65 6c 6c 20 73 69 7a 65 29 2e 3c 62 72 3e 0d cell size).<br>.
7920: 0a 54 68 65 20 6f 72 69 67 69 6e 61 6c 20 64 61 .The original da
7930: 74 61 73 65 74 20 69 73 20 74 68 65 20 4f 72 6f taset is the Oro
7940: 67 72 61 70 68 69 63 20 44 54 4d 20 31 30 78 31 graphic DTM 10x1
7950: 30 20 70 75 62 6c 69 73 68 65 64 20 62 79 20 3c 0 published by <
7960: 61 20 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 77 a href="http://w
7970: 77 77 35 30 32 2e 72 65 67 69 6f 6e 65 2e 74 6f ww502.regione.to
7980: 73 63 61 6e 61 2e 69 74 2f 67 65 6f 73 63 6f 70 scana.it/geoscop
7990: 69 6f 2f 63 61 72 74 6f 74 65 63 61 2e 68 74 6d io/cartoteca.htm
79a0: 6c 22 3e 54 75 73 63 61 6e 79 3c 2f 61 3e 3c 2f l">Tuscany</a></
79b0: 6c 69 3e 0d 0a 3c 6c 69 3e 74 68 69 73 20 73 70 li>..<li>this sp
79c0: 65 63 69 66 69 63 20 74 65 73 74 20 73 68 6f 77 ecific test show
79d0: 73 20 61 20 73 6c 69 67 68 74 20 73 75 70 65 72 s a slight super
79e0: 69 6f 72 69 74 79 20 6f 66 20 5a 53 54 44 20 61 iority of ZSTD a
79f0: 62 6f 76 65 20 44 45 46 4c 41 54 45 3b 20 69 74 bove DEFLATE; it
7a00: 27 73 20 61 62 6c 65 20 74 6f 20 73 63 6f 72 65 's able to score
7a10: 20 61 20 62 65 74 74 65 72 20 63 6f 6d 70 72 65 a better compre
7a20: 73 73 69 6f 6e 20 72 61 74 69 6f 20 61 6e 64 20 ssion ratio and
7a30: 69 74 27 73 20 66 61 73 74 65 72 20 62 6f 74 68 it's faster both
7a40: 20 77 68 65 6e 20 63 6f 6d 70 72 65 73 73 69 6e when compressin
7a50: 67 20 61 6e 64 20 64 65 63 6f 6d 70 72 65 73 73 g and decompress
7a60: 69 6e 67 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 4c ing.</li>..<li>L
7a70: 5a 34 20 63 6f 6e 66 69 72 6d 73 20 74 6f 20 62 Z4 confirms to b
7a80: 65 20 66 61 73 74 20 62 75 74 20 75 6e 61 62 6c e fast but unabl
7a90: 65 20 74 6f 20 73 63 6f 72 65 20 61 20 67 6f 6f e to score a goo
7aa0: 64 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 d compression ra
7ab0: 74 69 6f 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 4c tio.</li>..<li>L
7ac0: 5a 4d 41 20 63 6f 6e 66 69 72 6d 73 20 74 6f 20 ZMA confirms to
7ad0: 73 63 6f 72 65 20 69 6d 70 72 65 73 73 69 76 65 score impressive
7ae0: 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 compression rat
7af0: 69 6f 73 20 62 75 74 20 61 74 20 74 68 65 20 63 ios but at the c
7b00: 6f 73 74 20 6f 66 20 61 20 62 61 72 65 6c 79 20 ost of a barely
7b10: 74 6f 6c 65 72 61 62 6c 65 20 73 6c 6f 77 6e 65 tolerable slowne
7b20: 73 73 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d ss.</li>..</ul>.
7b30: 0a 3c 62 72 3e 0d 0a 3c 62 72 3e 0d 0a 3c 68 33 .<br>..<br>..<h3
7b40: 3e 54 65 73 74 20 23 39 20 2d 20 44 61 74 61 67 >Test #9 - Datag
7b50: 72 69 64 20 52 61 73 74 65 72 20 43 6f 76 65 72 rid Raster Cover
7b60: 61 67 65 20 28 54 49 46 46 20 2d 20 49 4e 54 31 age (TIFF - INT1
7b70: 36 29 3c 2f 68 33 3e 0d 0a 3c 74 61 62 6c 65 20 6)</h3>..<table
7b80: 63 65 6c 6c 73 70 61 63 69 6e 67 3d 22 36 22 20 cellspacing="6"
7b90: 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 38 22 20 cellpadding="8"
7ba0: 62 6f 72 64 65 72 3d 22 31 22 20 62 67 63 6f 6c border="1" bgcol
7bb0: 6f 72 3d 22 23 66 66 66 66 65 30 22 3e 0d 0a 3c or="#ffffe0">..<
7bc0: 74 72 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 tr><th bgcolor="
7bd0: 23 64 30 66 66 39 30 22 3e 43 6f 6d 70 72 65 73 #d0ff90">Compres
7be0: 73 69 6f 6e 20 4d 65 74 68 6f 64 3c 2f 74 68 3e sion Method</th>
7bf0: 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 <th bgcolor="#d0
7c00: 66 66 39 30 22 3e 44 42 20 53 69 7a 65 3c 2f 74 ff90">DB Size</t
7c10: 68 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 h><th bgcolor="#
7c20: 64 30 66 66 39 30 22 3e 43 6f 6d 70 72 65 73 73 d0ff90">Compress
7c30: 69 6f 6e 20 52 61 74 69 6f 3c 2f 74 68 3e 3c 74 ion Ratio</th><t
7c40: 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 h bgcolor="#d0ff
7c50: 39 30 22 3e 43 6f 6d 70 72 65 73 73 69 6f 6e 20 90">Compression
7c60: 54 69 6d 65 3c 2f 74 68 3e 3c 74 68 20 62 67 63 Time</th><th bgc
7c70: 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 44 olor="#d0ff90">D
7c80: 65 63 6f 6d 70 72 65 73 73 69 6f 6e 20 54 69 6d ecompression Tim
7c90: 65 3c 2f 74 68 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 e</th></tr>..<tr
7ca0: 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 >...<td align="c
7cb0: 65 6e 74 65 72 22 3e 3c 62 3e 4e 4f 4e 45 3c 2f enter"><b>NONE</
7cc0: 62 3e 20 3c 69 3e 6e 6f 20 63 6f 6d 70 72 65 73 b> <i>no compres
7cd0: 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 sion</i></td><td
7ce0: 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 34 align="right">4
7cf0: 38 30 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 80 MB</td><td al
7d00: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e 30 ign="center">1.0
7d10: 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 0</td><td align=
7d20: 22 72 69 67 68 74 22 3e 31 37 73 65 63 3c 2f 74 "right">17sec</t
7d30: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 d><td align="rig
7d40: 68 74 22 3e 31 6d 69 6e 20 33 39 73 65 63 3c 2f ht">1min 39sec</
7d50: 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 td>..</tr>..<tr
7d60: 62 67 63 6f 6c 6f 72 3d 22 23 64 66 64 64 63 30 bgcolor="#dfddc0
7d70: 22 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 ">...<td align="
7d80: 63 65 6e 74 65 72 22 3e 3c 62 3e 4c 5a 34 3c 2f center"><b>LZ4</
7d90: 62 3e 20 3c 69 3e 76 65 72 79 20 66 61 73 74 20 b> <i>very fast
7da0: 63 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c compression</i><
7db0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 /td><td align="r
7dc0: 69 67 68 74 22 3e 33 31 37 20 4d 42 3c 2f 74 64 ight">317 MB</td
7dd0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 ><td align="cent
7de0: 65 72 22 3e 31 2e 35 31 3c 2f 74 64 3e 3c 74 64 er">1.51</td><td
7df0: 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 32 align="right">2
7e00: 31 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 1sec</td><td ali
7e10: 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69 6e 20 gn="right">1min
7e20: 34 38 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 48sec</td>..</tr
7e30: 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20 61 6c >..<tr>...<td al
7e40: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e ign="center"><b>
7e50: 44 45 46 4c 41 54 45 3c 2f 62 3e 20 3c 69 3e 7a DEFLATE</b> <i>z
7e60: 69 70 20 63 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f ip compression</
7e70: 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e i></td><td align
7e80: 3d 22 72 69 67 68 74 22 3e 32 30 35 20 4d 42 3c ="right">205 MB<
7e90: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 /td><td align="c
7ea0: 65 6e 74 65 72 22 3e 32 2e 33 34 3c 2f 74 64 3e enter">2.34</td>
7eb0: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 <td align="right
7ec0: 22 3e 32 38 73 65 63 3c 2f 74 64 3e 3c 74 64 20 ">28sec</td><td
7ed0: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d align="right">1m
7ee0: 69 6e 20 33 39 73 65 63 3c 2f 74 64 3e 0d 0a 3c in 39sec</td>..<
7ef0: 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63 6f 6c 6f /tr>..<tr bgcolo
7f00: 72 3d 22 23 64 66 64 64 63 30 22 3e 0d 0a 09 3c r="#dfddc0">...<
7f10: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
7f20: 22 3e 3c 62 3e 5a 53 54 44 3c 2f 62 3e 20 3c 69 "><b>ZSTD</b> <i
7f30: 3e 66 61 73 74 20 63 6f 6d 70 72 65 73 73 69 6f >fast compressio
7f40: 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c n</i></td><td al
7f50: 69 67 6e 3d 22 72 69 67 68 74 22 3e 32 30 37 20 ign="right">207
7f60: 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e MB</td><td align
7f70: 3d 22 63 65 6e 74 65 72 22 3e 32 2e 33 32 3c 2f ="center">2.32</
7f80: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 td><td align="ri
7f90: 67 68 74 22 3e 32 30 73 65 63 3c 2f 74 64 3e 3c ght">20sec</td><
7fa0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 td align="right"
7fb0: 3e 31 6d 69 6e 20 34 32 73 65 63 3c 2f 74 64 3e >1min 42sec</td>
7fc0: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 ..</tr>..<tr>...
7fd0: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 <td align="cente
7fe0: 72 22 3e 3c 62 3e 4c 5a 4d 41 3c 2f 62 3e 20 3c r"><b>LZMA</b> <
7ff0: 69 3e 37 2d 7a 69 70 20 63 6f 6d 70 72 65 73 73 i>7-zip compress
8000: 69 6f 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 ion</i></td><td
8010: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 36 align="right">16
8020: 38 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 8 MB</td><td ali
8030: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 32 2e 38 36 gn="center">2.86
8040: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
8050: 72 69 67 68 74 22 3e 32 6d 69 6e 20 30 73 65 63 right">2min 0sec
8060: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 </td><td align="
8070: 72 69 67 68 74 22 3e 32 6d 69 6e 20 33 73 65 63 right">2min 3sec
8080: 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 2f </td>..</tr>..</
8090: 74 61 62 6c 65 3e 0d 0a 3c 62 3e 51 75 69 63 6b table>..<b>Quick
80a0: 20 61 73 73 65 73 73 6d 65 6e 74 3a 3c 2f 62 3e assessment:</b>
80b0: 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 74 68 69 73 ..<ul>..<li>this
80c0: 20 74 65 73 74 20 77 61 73 20 62 61 73 65 64 20 test was based
80d0: 6f 6e 20 74 68 65 20 76 65 72 79 20 70 6f 70 75 on the very popu
80e0: 6c 61 72 20 45 54 4f 50 4f 31 20 67 6c 6f 62 61 lar ETOPO1 globa
80f0: 6c 20 72 65 6c 69 65 66 20 6d 6f 64 65 6c 20 6f l relief model o
8100: 66 20 45 61 72 74 68 27 73 20 73 75 72 66 61 63 f Earth's surfac
8110: 65 20 70 75 62 6c 69 73 68 65 64 20 62 79 20 3c e published by <
8120: 61 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f a href="https://
8130: 77 77 77 2e 6e 67 64 63 2e 6e 6f 61 61 2e 67 6f www.ngdc.noaa.go
8140: 76 2f 6d 67 67 2f 67 6c 6f 62 61 6c 2f 67 6c 6f v/mgg/global/glo
8150: 62 61 6c 2e 68 74 6d 6c 22 3e 4e 4f 41 41 3c 2f bal.html">NOAA</
8160: 61 3e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 74 68 69 a></li>..<li>thi
8170: 73 20 73 70 65 63 69 66 69 63 20 74 65 73 74 20 s specific test
8180: 66 61 69 6c 73 20 74 6f 20 72 65 76 65 61 6c 20 fails to reveal
8190: 61 6e 79 20 73 75 70 65 72 69 6f 72 69 74 79 20 any superiority
81a0: 6f 66 20 5a 53 54 44 20 61 62 6f 76 65 20 44 45 of ZSTD above DE
81b0: 46 4c 41 54 45 3b 20 74 68 65 79 20 61 72 65 20 FLATE; they are
81c0: 73 75 62 73 74 61 6e 74 69 61 6c 6c 79 20 6f 6e substantially on
81d0: 20 70 61 72 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e par.</li>..<li>
81e0: 4c 5a 34 20 63 6f 6e 66 69 72 6d 73 20 74 6f 20 LZ4 confirms to
81f0: 62 65 20 66 61 73 74 20 62 75 74 20 75 6e 61 62 be fast but unab
8200: 6c 65 20 74 6f 20 73 63 6f 72 65 20 61 20 67 6f le to score a go
8210: 6f 64 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 od compression r
8220: 61 74 69 6f 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e atio.</li>..<li>
8230: 4c 5a 4d 41 20 63 6f 6e 66 69 72 6d 73 20 74 6f LZMA confirms to
8240: 20 73 63 6f 72 65 20 69 6d 70 72 65 73 73 69 76 score impressiv
8250: 65 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 e compression ra
8260: 74 69 6f 73 20 62 75 74 20 61 74 20 74 68 65 20 tios but at the
8270: 63 6f 73 74 20 6f 66 20 61 20 62 61 72 65 6c 79 cost of a barely
8280: 20 74 6f 6c 65 72 61 62 6c 65 20 73 6c 6f 77 6e tolerable slown
8290: 65 73 73 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e ess.</li>..</ul>
82a0: 0d 0a 3c 62 72 3e 0d 0a 3c 68 72 3e 0d 0a 3c 68 ..<br>..<hr>..<h
82b0: 31 3e 43 6f 6e 63 6c 75 73 69 6f 6e 73 3c 2f 68 1>Conclusions</h
82c0: 31 3e 0d 0a 3c 6f 6c 3e 0d 0a 3c 6c 69 3e 47 65 1>..<ol>..<li>Ge
82d0: 6e 65 72 61 6c 20 70 75 72 70 6f 73 65 20 6c 6f neral purpose lo
82e0: 73 73 6c 65 73 73 20 63 6f 6d 70 72 65 73 73 69 ssless compressi
82f0: 6f 6e 20 61 6c 67 6f 72 69 74 68 6d 73 20 63 61 on algorithms ca
8300: 6e 20 62 65 20 73 75 63 63 65 73 73 66 75 6c 6c n be successfull
8310: 79 20 64 65 70 6c 6f 79 65 64 20 65 76 65 6e 20 y deployed even
8320: 69 6e 20 74 68 65 20 63 61 73 65 20 6f 66 20 52 in the case of R
8330: 61 73 74 65 72 20 43 6f 76 65 72 61 67 65 73 2e aster Coverages.
8340: 3c 62 72 3e 0d 0a 54 68 65 79 20 61 72 65 20 6e <br>..They are n
8350: 65 76 65 72 20 61 62 6c 65 20 74 6f 20 73 63 6f ever able to sco
8360: 72 65 20 69 6d 70 72 65 73 73 69 76 65 20 63 6f re impressive co
8370: 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f 73 mpression ratios
8380: 20 28 6c 6f 73 73 79 20 63 6f 6d 70 72 65 73 73 (lossy compress
8390: 69 6f 6e 20 61 72 65 20 72 65 71 75 69 72 65 64 ion are required
83a0: 20 66 6f 72 20 74 68 69 73 29 2c 20 62 75 74 20 for this), but
83b0: 74 68 65 79 20 63 61 6e 20 65 66 66 65 63 74 69 they can effecti
83c0: 76 65 6c 79 20 65 6e 73 75 72 65 20 61 20 76 61 vely ensure a va
83d0: 6c 75 61 62 6c 65 20 72 65 64 75 63 74 69 6f 6e luable reduction
83e0: 20 69 6e 20 74 68 65 20 72 65 71 75 69 72 65 64 in the required
83f0: 20 73 74 6f 72 61 67 65 20 61 6d 6f 75 6e 74 20 storage amount
8400: 77 69 74 68 6f 75 74 20 69 6d 70 6f 73 69 6e 67 without imposing
8410: 20 61 6e 79 20 6c 6f 73 73 20 6f 66 20 69 6e 66 any loss of inf
8420: 6f 72 6d 61 74 69 6f 6e 2e 3c 62 72 3e 0d 0a 41 ormation.<br>..A
8430: 6e 64 20 73 6f 6d 65 20 62 65 74 77 65 65 6e 20 nd some between
8440: 74 68 65 6d 20 61 72 65 20 66 61 73 74 20 65 6e them are fast en
8450: 6f 75 67 68 20 74 6f 20 6e 6f 74 20 69 6d 70 6f ough to not impo
8460: 73 65 20 61 6e 79 20 6f 76 65 72 68 65 61 64 3a se any overhead:
8470: 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 4c ..<ul>..<li><b>L
8480: 5a 34 3c 2f 62 3e 20 64 6f 65 73 6e 27 74 20 73 Z4</b> doesn't s
8490: 65 65 6d 73 20 74 6f 20 62 65 20 72 65 61 6c 6c eems to be reall
84a0: 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 66 6f y interesting fo
84b0: 72 20 63 6f 6d 70 72 65 73 73 69 6e 67 20 72 61 r compressing ra
84c0: 73 74 65 72 20 64 61 74 61 2e 3c 62 72 3e 0d 0a ster data.<br>..
84d0: 59 65 73 2c 20 69 74 20 74 72 75 65 20 74 68 61 Yes, it true tha
84e0: 74 20 69 74 27 73 20 69 6d 70 72 65 73 73 69 76 t it's impressiv
84f0: 65 6c 79 20 66 61 73 74 3b 20 62 75 74 20 74 68 ely fast; but th
8500: 65 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 e compression ra
8510: 74 69 6f 73 20 61 72 65 20 61 6c 77 61 79 73 20 tios are always
8520: 74 6f 6f 20 6d 75 63 68 20 62 6c 61 6e 64 20 74 too much bland t
8530: 6f 20 62 65 20 63 6f 6e 73 69 64 65 72 65 64 20 o be considered
8540: 72 65 61 6c 6c 79 20 69 6e 74 65 72 65 73 74 69 really interesti
8550: 6e 67 2e 3c 62 72 3e 0d 0a 49 74 27 73 20 6b 69 ng.<br>..It's ki
8560: 6e 64 20 6f 66 20 61 20 72 65 73 65 61 72 63 68 nd of a research
8570: 2f 61 63 61 64 65 6d 69 63 20 74 6f 6f 6c 20 64 /academic tool d
8580: 69 66 66 69 63 75 6c 74 20 74 6f 20 62 65 20 75 ifficult to be u
8590: 73 65 66 75 6c 6c 79 20 64 65 70 6c 6f 79 65 64 sefully deployed
85a0: 20 69 6e 20 70 72 6f 64 75 63 74 69 6f 6e 20 65 in production e
85b0: 6e 76 69 72 6f 6e 6d 65 6e 74 73 2e 3c 2f 6c 69 nvironments.</li
85c0: 3e 0d 0a 3c 6c 69 3e 3c 62 3e 44 45 46 4c 41 54 >..<li><b>DEFLAT
85d0: 45 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 5a 53 54 E</b> and <b>ZST
85e0: 44 3c 2f 62 3e 20 61 72 65 20 61 6c 6d 6f 73 74 D</b> are almost
85f0: 20 6f 6e 20 70 61 72 20 69 6e 20 74 68 65 20 73 on par in the s
8600: 70 65 63 69 66 69 63 20 64 6f 6d 61 69 6e 20 6f pecific domain o
8610: 66 20 72 61 73 74 65 72 20 64 61 74 61 3b 20 62 f raster data; b
8620: 6f 74 68 20 61 72 65 20 77 65 6c 6c 20 62 61 6c oth are well bal
8630: 61 6e 63 65 64 20 61 6e 64 20 65 66 66 65 63 74 anced and effect
8640: 69 76 65 6c 79 20 75 73 65 66 75 6c 2e 3c 62 72 ively useful.<br
8650: 3e 0d 0a 3c 62 3e 5a 53 54 44 3c 2f 62 3e 20 73 >..<b>ZSTD</b> s
8660: 6f 6d 65 74 69 6d 65 73 20 73 68 6f 77 73 20 63 ometimes shows c
8670: 6c 65 61 72 6c 79 20 73 75 70 65 72 69 6f 72 20 learly superior
8680: 73 70 65 65 64 73 20 61 6e 64 2f 6f 72 20 63 6f speeds and/or co
8690: 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f 73 mpression ratios
86a0: 2c 20 62 75 74 20 74 68 69 73 20 64 65 70 65 6e , but this depen
86b0: 64 73 20 73 6f 20 6d 75 63 68 20 6f 6e 20 74 68 ds so much on th
86c0: 65 20 69 6e 74 72 69 6e 73 69 63 20 6e 61 74 75 e intrinsic natu
86d0: 72 65 20 6f 66 20 74 68 65 20 73 70 65 63 69 66 re of the specif
86e0: 69 63 20 73 61 6d 70 6c 65 20 74 6f 20 62 65 20 ic sample to be
86f0: 70 72 61 63 74 69 63 61 6c 6c 79 20 75 6e 70 72 practically unpr
8700: 65 64 69 63 74 61 62 6c 65 2e 3c 62 72 3e 0d 0a edictable.<br>..
8710: 41 20 63 61 72 65 66 75 6c 20 65 76 61 6c 75 61 A careful evalua
8720: 74 69 6f 6e 20 62 79 20 70 72 61 63 74 69 63 61 tion by practica
8730: 6c 20 74 65 73 74 69 6e 67 20 69 73 20 61 6c 77 l testing is alw
8740: 61 79 73 20 72 65 71 75 69 72 65 64 20 63 61 73 ays required cas
8750: 65 20 62 79 65 20 63 61 73 65 2c 20 74 68 65 72 e bye case, ther
8760: 65 20 69 73 20 6e 6f 20 72 65 6c 69 61 62 6c 65 e is no reliable
8770: 20 67 65 6e 65 72 61 6c 20 72 75 6c 65 2e 3c 2f general rule.</
8780: 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 4c 5a 4d 41 li>..<li><b>LZMA
8790: 3c 2f 62 3e 20 69 73 20 75 6e 62 65 61 74 61 62 </b> is unbeatab
87a0: 6c 65 20 66 6f 72 20 69 74 73 20 63 6f 6d 70 72 le for its compr
87b0: 65 73 73 69 6f 6e 20 72 61 74 69 6f 73 2c 20 62 ession ratios, b
87c0: 75 74 20 69 74 27 73 20 73 6f 20 6d 75 63 68 20 ut it's so much
87d0: 73 6c 6f 77 20 77 68 65 6e 20 64 65 63 6f 6d 70 slow when decomp
87e0: 72 65 73 73 69 6e 67 20 74 6f 20 64 69 73 63 6f ressing to disco
87f0: 75 72 61 67 65 20 69 74 73 20 61 64 6f 70 74 69 urage its adopti
8800: 6f 6e 20 6f 6e 20 70 72 6f 64 75 63 74 69 6f 6e on on production
8810: 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 73 2e 3c 62 environments.<b
8820: 72 3e 0d 0a 49 74 73 20 62 65 73 74 20 66 69 65 r>..Its best fie
8830: 6c 64 20 6f 66 20 61 70 70 6c 69 63 61 74 69 6f ld of applicatio
8840: 6e 20 70 72 6f 62 61 62 6c 79 20 69 73 20 66 6f n probably is fo
8850: 72 20 6c 6f 6e 67 20 74 65 72 6d 20 73 74 6f 72 r long term stor
8860: 61 67 65 20 6f 66 20 72 65 61 6c 6c 79 20 68 75 age of really hu
8870: 67 65 20 72 61 73 74 65 72 20 63 6f 76 65 72 61 ge raster covera
8880: 67 65 73 2c 20 77 68 65 72 65 20 68 69 67 68 20 ges, where high
8890: 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 compression rati
88a0: 6f 73 20 63 61 6e 20 65 61 73 69 6c 79 20 6f 76 os can easily ov
88b0: 65 72 63 6f 6d 65 20 61 6e 79 20 63 6f 6e 73 69 ercome any consi
88c0: 64 65 72 61 74 69 6f 6e 20 61 62 6f 75 74 20 73 deration about s
88d0: 70 65 65 64 2e 3c 2f 75 6c 3e 3c 2f 6c 69 3e 0d peed.</ul></li>.
88e0: 0a 3c 6c 69 3e 4c 6f 73 73 6c 65 73 73 20 63 6f .<li>Lossless co
88f0: 6d 70 72 65 73 73 69 6f 6e 20 61 6c 67 6f 72 69 mpression algori
8900: 74 68 6d 73 20 73 70 65 63 69 66 69 63 61 6c 6c thms specificall
8910: 79 20 64 65 73 69 67 6e 65 64 20 66 6f 72 20 72 y designed for r
8920: 61 73 74 65 72 20 69 6d 61 67 65 73 20 61 72 65 aster images are
8930: 20 76 65 72 79 20 64 65 6c 75 64 69 6e 67 2e 3c very deluding.<
8940: 62 72 3e 0d 0a 54 68 65 79 20 61 72 65 20 74 6f br>..They are to
8950: 6f 20 6f 66 74 65 6e 20 75 6e 61 62 6c 65 20 74 o often unable t
8960: 6f 20 73 63 6f 72 65 20 62 65 74 74 65 72 20 63 o score better c
8970: 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f ompression ratio
8980: 73 20 74 68 61 6e 20 67 65 6e 65 72 61 6c 20 70 s than general p
8990: 75 72 70 6f 73 65 20 61 6c 67 6f 72 69 74 68 6d urpose algorithm
89a0: 73 2c 20 61 6e 64 20 61 73 20 61 20 67 65 6e 65 s, and as a gene
89b0: 72 61 6c 20 74 72 65 6e 64 20 74 68 65 79 20 61 ral trend they a
89c0: 72 65 20 75 6e 61 63 63 65 70 74 61 62 6c 79 20 re unacceptably
89d0: 73 6c 6f 77 20 77 68 65 6e 20 64 65 63 6f 6d 70 slow when decomp
89e0: 72 65 73 73 69 6e 67 2e 3c 62 72 3e 0d 0a 53 6f ressing.<br>..So
89f0: 6d 65 74 69 6d 65 73 20 62 65 69 6e 67 20 74 6f metimes being to
8a00: 6f 20 6d 75 63 68 20 73 6f 70 68 69 73 74 69 63 o much sophistic
8a10: 61 74 65 64 20 61 6e 64 20 63 6f 6d 70 6c 65 78 ated and complex
8a20: 20 64 6f 65 73 6e 27 74 20 70 61 79 3a 20 61 6e doesn't pay: an
8a30: 64 20 74 68 69 73 20 69 73 20 6f 6e 65 20 6f 66 d this is one of
8a40: 20 74 68 69 73 20 63 61 73 65 73 2e 0d 0a 3c 75 this cases...<u
8a50: 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 50 4e 47 3c 2f l>..<li><b>PNG</
8a60: 62 3e 20 63 6c 65 61 72 6c 79 20 65 6d 65 72 67 b> clearly emerg
8a70: 65 73 20 61 73 20 74 68 65 20 62 65 73 74 20 6f es as the best o
8a80: 66 20 74 68 69 73 20 67 72 6f 75 70 2e 3c 62 72 f this group.<br
8a90: 3e 0d 0a 49 74 27 73 20 61 20 72 65 61 6c 20 69 >..It's a real i
8aa0: 6d 61 67 65 20 66 6f 72 6d 61 74 20 62 75 74 20 mage format but
8ab0: 69 74 20 68 61 73 20 28 6d 6f 72 65 20 6f 72 20 it has (more or
8ac0: 6c 65 73 73 29 20 74 68 65 20 73 61 6d 65 20 63 less) the same c
8ad0: 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f ompression ratio
8ae0: 73 20 61 6e 64 20 73 70 65 65 64 73 20 61 73 20 s and speeds as
8af0: 44 45 46 4c 41 54 45 20 6f 72 20 5a 53 54 44 2c DEFLATE or ZSTD,
8b00: 20 61 6e 64 20 74 68 69 73 20 69 73 6e 27 74 20 and this isn't
8b10: 61 74 20 61 6c 6c 20 73 75 72 70 72 69 73 69 6e at all surprisin
8b20: 67 20 6f 6e 63 65 20 63 6f 6e 73 69 64 65 72 65 g once considere
8b30: 64 20 74 68 61 74 20 50 4e 47 20 69 73 20 77 69 d that PNG is wi
8b40: 64 65 6c 79 20 62 61 73 65 64 20 6f 6e 20 44 45 dely based on DE
8b50: 46 4c 41 54 45 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 FLATE.</li>..<li
8b60: 3e 3c 62 3e 57 65 62 50 3c 2f 62 3e 20 28 69 6e ><b>WebP</b> (in
8b70: 20 69 74 73 20 6c 6f 73 73 6c 65 73 73 20 6d 6f its lossless mo
8b80: 64 65 29 20 69 73 20 6f 6e 6c 79 20 6d 61 72 67 de) is only marg
8b90: 69 6e 61 6c 6c 79 20 69 6e 74 65 72 65 73 74 69 inally interesti
8ba0: 6e 67 2e 3c 62 72 3e 0d 0a 53 6f 6d 65 74 69 6d ng.<br>..Sometim
8bb0: 65 73 20 28 62 75 74 20 6e 6f 74 20 61 6c 77 61 es (but not alwa
8bc0: 79 73 29 20 69 74 20 63 61 6e 20 73 63 6f 72 65 ys) it can score
8bd0: 20 62 65 74 74 65 72 20 63 6f 6d 70 72 65 73 73 better compress
8be0: 69 6f 6e 20 72 61 74 69 6f 73 20 74 68 61 6e 20 ion ratios than
8bf0: 44 45 46 4c 41 54 45 2c 20 5a 53 54 44 20 61 6e DEFLATE, ZSTD an
8c00: 64 20 50 4e 47 20 77 69 74 68 6f 75 74 20 69 6d d PNG without im
8c10: 70 6f 73 69 6e 67 20 61 20 6e 6f 74 69 63 65 61 posing a noticea
8c20: 62 6c 65 20 73 6c 6f 77 6e 65 73 73 2e 3c 2f 6c ble slowness.</l
8c30: 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 43 68 61 72 4c i>..<li><b>CharL
8c40: 53 3c 2f 62 3e 20 28 61 6b 61 20 3c 69 3e 6c 6f S</b> (aka <i>lo
8c50: 73 73 6c 65 73 73 20 4a 50 45 47 3c 2f 69 3e 29 ssless JPEG</i>)
8c60: 20 61 6e 64 20 3c 62 3e 4a 70 65 67 32 30 30 30 and <b>Jpeg2000
8c70: 3c 2f 62 3e 20 28 69 6e 20 69 74 73 20 6c 6f 73 </b> (in its los
8c80: 73 6c 65 73 73 20 6d 6f 64 65 29 20 61 72 65 20 sless mode) are
8c90: 64 65 66 69 6e 69 74 65 6c 79 20 6e 6f 74 20 69 definitely not i
8ca0: 6e 74 65 72 65 73 74 69 6e 67 20 61 74 20 61 6c nteresting at al
8cb0: 6c 2e 3c 62 72 3e 0d 0a 42 6f 74 68 20 74 68 65 l.<br>..Both the
8cc0: 6d 20 61 72 65 20 61 6c 77 61 79 73 20 75 6e 61 m are always una
8cd0: 62 6c 65 20 74 6f 20 73 63 6f 72 65 20 72 65 61 ble to score rea
8ce0: 6c 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 lly interesting
8cf0: 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 compression rati
8d00: 6f 73 2c 20 61 6e 64 20 61 72 65 20 64 65 61 64 os, and are dead
8d10: 6c 79 20 73 6c 6f 77 20 28 6d 6f 73 74 20 6e 6f ly slow (most no
8d20: 74 69 63 65 61 62 6c 79 20 4c 4c 5f 4a 50 32 29 ticeably LL_JP2)
8d30: 2e 3c 62 72 3e 0d 0a 4c 5a 4d 41 20 63 61 6e 20 .<br>..LZMA can
8d40: 65 61 73 69 6c 79 20 73 63 6f 72 65 20 62 65 74 easily score bet
8d50: 74 65 72 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 ter compression
8d60: 72 61 74 69 6f 73 20 77 69 74 68 20 6d 6f 72 65 ratios with more
8d70: 20 6f 72 20 6c 65 73 73 20 74 68 65 20 73 61 6d or less the sam
8d80: 65 20 6c 65 76 65 6c 20 6f 66 20 73 6c 6f 77 6e e level of slown
8d90: 65 73 73 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e ess.</li>..</ul>
8da0: 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 4e 6f </li>..<li><b>No
8db0: 74 65 3c 2f 62 3e 3a 20 44 45 46 4c 41 54 45 2c te</b>: DEFLATE,
8dc0: 20 5a 53 54 44 20 61 6e 64 20 50 4e 47 20 72 65 ZSTD and PNG re
8dd0: 71 75 69 72 65 20 61 62 6f 75 74 20 74 68 65 20 quire about the
8de0: 73 61 6d 65 20 64 65 63 6f 6d 70 72 65 73 73 69 same decompressi
8df0: 6f 6e 20 74 69 6d 65 20 74 68 61 6e 20 3c 62 3e on time than <b>
8e00: 4e 4f 4e 45 3c 2f 62 3e 20 28 6e 6f 20 63 6f 6d NONE</b> (no com
8e10: 70 72 65 73 73 69 6f 6e 20 61 74 20 61 6c 6c 29 pression at all)
8e20: 3b 20 61 6e 64 20 73 6f 6d 65 74 69 6d 65 73 20 ; and sometimes
8e30: 74 68 65 79 20 61 72 65 20 6d 61 72 67 69 6e 61 they are margina
8e40: 6c 6c 79 20 66 61 73 74 65 72 2e 3c 62 72 3e 0d lly faster.<br>.
8e50: 0a 54 68 69 73 20 69 73 20 61 20 76 65 72 79 20 .This is a very
8e60: 72 65 6c 65 76 61 6e 74 20 66 69 6e 64 69 6e 67 relevant finding
8e70: 2c 20 62 65 63 61 75 73 65 20 69 74 20 6f 62 6a , because it obj
8e80: 65 63 74 69 76 65 6c 79 20 63 6f 6e 66 69 72 6d ectively confirm
8e90: 73 20 74 68 61 74 20 64 65 70 6c 6f 79 69 6e 67 s that deploying
8ea0: 20 61 20 63 6f 6d 70 72 65 73 73 65 64 20 52 61 a compressed Ra
8eb0: 73 74 65 72 20 43 6f 76 65 72 61 67 65 20 64 6f ster Coverage do
8ec0: 65 73 6e 27 74 20 69 6e 74 72 6f 64 75 63 65 73 esn't introduces
8ed0: 20 61 6e 79 20 6f 76 65 72 68 65 61 64 20 61 74 any overhead at
8ee0: 20 61 6c 6c 2c 20 61 6e 64 20 63 61 6e 20 6e 65 all, and can ne
8ef0: 76 65 72 20 62 65 20 61 20 62 6f 74 74 6c 65 6e ver be a bottlen
8f00: 65 63 6b 2e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e eck...<ul>..<li>
8f10: 41 20 73 68 6f 72 74 20 72 61 74 69 6f 6e 61 6c A short rational
8f20: 65 3a 20 65 76 65 72 79 20 28 64 65 29 63 6f 6d e: every (de)com
8f30: 70 72 65 73 73 69 6f 6e 20 73 75 72 65 6c 79 20 pression surely
8f40: 72 65 71 75 69 72 65 73 20 6d 6f 72 65 20 43 50 requires more CP
8f50: 55 20 63 79 63 6c 65 73 2c 20 62 75 74 20 63 6f U cycles, but co
8f60: 6d 70 72 65 73 73 69 6f 6e 20 61 6c 77 61 79 73 mpression always
8f70: 20 69 6d 70 6c 69 65 73 20 6c 65 73 73 20 49 2f implies less I/
8f80: 4f 20 6f 70 65 72 61 74 69 6f 6e 73 2e 3c 62 72 O operations.<br
8f90: 3e 0d 0a 4f 6e 20 6d 6f 64 65 72 6e 20 48 57 20 >..On modern HW
8fa0: 74 68 69 73 20 65 6e 64 73 20 75 70 20 69 6e 20 this ends up in
8fb0: 61 20 62 65 6e 65 66 69 63 69 61 6c 20 74 72 61 a beneficial tra
8fc0: 64 65 20 6f 66 66 2c 20 73 6f 20 70 72 6f 63 65 de off, so proce
8fd0: 73 73 69 6e 67 20 63 6f 6d 70 72 65 73 73 65 64 ssing compressed
8fe0: 20 64 61 74 61 20 63 61 6e 20 62 65 20 75 73 75 data can be usu
8ff0: 61 6c 6c 79 20 6f 6e 20 70 61 72 20 28 6f 72 20 ally on par (or
9000: 65 76 65 6e 20 66 61 73 74 65 72 29 20 74 68 65 even faster) the
9010: 6e 20 70 72 6f 63 65 73 73 69 6e 67 20 75 6e 63 n processing unc
9020: 6f 6d 70 72 65 73 73 65 64 20 64 61 74 61 2e 0d ompressed data..
9030: 0a 3c 2f 75 6c 3e 3c 2f 6c 69 3e 0d 0a 3c 2f 6c .</ul></li>..</l
9040: 69 3e 0d 0a 3c 2f 6f 6c 3e 0d 0a 3c 62 72 3e 0d i>..</ol>..<br>.
9050: 0a 3c 68 72 3e 3c 62 72 3e 0d 0a 42 61 63 6b 20 .<hr><br>..Back
9060: 74 6f 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70 to <a href="http
9070: 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 s://www.gaia-gis
9080: 2e 69 74 2f 66 6f 73 73 69 6c 2f 6c 69 62 72 61 .it/fossil/libra
9090: 73 74 65 72 6c 69 74 65 32 2f 77 69 6b 69 3f 6e sterlite2/wiki?n
90a0: 61 6d 65 3d 72 61 73 74 65 72 6c 69 74 65 32 2d ame=rasterlite2-
90b0: 64 6f 63 22 3e 52 61 73 74 65 72 4c 69 74 65 32 doc">RasterLite2
90c0: 20 64 6f 63 20 69 6e 64 65 78 3c 2f 61 3e 0a 5a doc index</a>.Z
90d0: 20 35 31 39 63 39 34 30 39 39 63 30 37 39 61 38 519c94099c079a8
90e0: 65 66 30 64 30 62 63 36 31 39 63 34 61 61 30 63 ef0d0bc619c4aa0c
90f0: 34 0a 4.