Hex Artifact Content
Not logged in

Artifact b267fdc76b4f758b8206f0f8a552a5fdf2d05aba:

Wiki page [benchmarks (2019 update)] by sandro 2019-02-08 13:18:09.
0000: 44 20 32 30 31 39 2d 30 32 2d 30 38 54 31 33 3a  D 2019-02-08T13:
0010: 31 38 3a 30 39 2e 39 37 31 0a 4c 20 62 65 6e 63  18:09.971.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 61 39 62 36 33 34  pdate).P ba9b634
0040: 35 37 33 31 35 32 34 34 36 63 32 62 37 30 62 62  573152446c2b70bb
0050: 34 63 35 30 34 37 38 36 66 33 65 30 32 39 61 64  4c504786f3e029ad
0060: 31 0a 55 20 73 61 6e 64 72 6f 0a 57 20 33 36 39  1.U sandro.W 369
0070: 39 37 0a 42 61 63 6b 20 74 6f 20 3c 61 20 68 72  97.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 73 65 64 20 6f 6e 20 64  ly focussed on d
49c0: 69 72 65 63 74 6c 79 20 63 6f 6d 70 61 72 69 6e  irectly comparin
49d0: 67 20 74 68 65 20 76 61 72 69 6f 75 73 20 6c 6f  g the various lo
49e0: 73 73 6c 65 73 73 20 63 6f 6d 70 72 65 73 73 69  ssless compressi
49f0: 6f 6e 20 6d 65 74 68 6f 64 73 20 61 73 20 69 6d  on methods as im
4a00: 70 6c 65 6d 65 6e 74 65 64 20 62 79 20 52 61 73  plemented by Ras
4a10: 74 65 72 4c 69 74 65 32 20 66 6f 72 20 65 6e 63  terLite2 for enc
4a20: 6f 64 69 6e 67 20 61 6e 64 20 64 65 63 6f 64 69  oding and decodi
4a30: 6e 67 20 52 61 73 74 65 72 20 43 6f 76 65 72 61  ng Raster Covera
4a40: 67 65 20 54 69 6c 65 73 2e 0d 0a 3c 75 6c 3e 0d  ge Tiles...<ul>.
4a50: 0a 3c 6c 69 3e 53 65 76 65 72 61 6c 20 64 69 73  .<li>Several dis
4a60: 74 69 6e 63 74 20 52 61 73 74 65 72 4c 69 74 65  tinct RasterLite
4a70: 32 20 64 61 74 61 62 61 73 65 73 20 77 69 6c 6c  2 databases will
4a80: 20 62 65 20 63 72 65 61 74 65 64 20 61 6e 64 20   be created and 
4a90: 66 75 6c 6c 79 20 70 6f 70 75 6c 61 74 65 64 20  fully populated 
4aa0: 62 79 20 69 6d 70 6f 72 74 69 6e 67 20 74 68 65  by importing the
4ab0: 20 73 61 6d 65 20 73 61 6d 70 6c 65 20 62 75 74   same sample but
4ac0: 20 62 79 20 61 70 70 6c 79 69 6e 67 20 61 20 64   by applying a d
4ad0: 69 66 66 65 72 65 6e 74 20 63 6f 6d 70 72 65 73  ifferent compres
4ae0: 73 69 6f 6e 20 6d 65 74 68 6f 64 20 66 6f 72 20  sion method for 
4af0: 65 61 63 68 20 64 61 74 61 62 61 73 65 2e 3c 2f  each database.</
4b00: 6c 69 3e 0d 0a 3c 6c 69 3e 54 68 65 20 3c 62 3e  li>..<li>The <b>
4b10: 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69  compression rati
4b20: 6f 73 3c 2f 62 3e 20 77 69 6c 6c 20 62 65 20 74  os</b> will be t
4b30: 68 65 6e 20 63 6f 6d 70 75 74 65 64 20 66 72 6f  hen computed fro
4b40: 6d 20 74 68 65 20 73 69 7a 65 73 20 6f 66 20 74  m the sizes of t
4b50: 68 65 20 3c 75 3e 75 6e 63 6f 6d 70 72 65 73 73  he <u>uncompress
4b60: 65 64 3c 2f 75 3e 20 64 61 74 61 62 61 73 65 20  ed</u> database 
4b70: 28 6d 65 74 68 6f 64 20 3c 62 3e 4e 4f 4e 45 3c  (method <b>NONE<
4b80: 2f 62 3e 29 20 61 6e 64 20 61 6e 79 20 6f 74 68  /b>) and any oth
4b90: 65 72 20 64 61 74 61 62 61 73 65 20 62 61 73 65  er database base
4ba0: 64 20 6f 6e 20 74 68 65 20 73 61 6d 65 20 73 61  d on the same sa
4bb0: 6d 70 6c 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e  mple.</li>..<li>
4bc0: 54 68 65 20 3c 62 3e 63 6f 6d 70 72 65 73 73 69  The <b>compressi
4bd0: 6f 6e 20 74 69 6d 65 3c 2f 62 3e 20 77 69 6c 6c  on time</b> will
4be0: 20 62 65 20 74 68 65 20 74 69 6d 65 20 28 61 73   be the time (as
4bf0: 20 72 65 70 6f 72 74 65 64 20 62 79 20 3c 62 3e   reported by <b>
4c00: 72 6c 32 74 6f 6f 6c 3c 2f 62 3e 29 20 72 65 71  rl2tool</b>) req
4c10: 75 69 72 65 64 20 66 6f 72 20 63 72 65 61 74 69  uired for creati
4c20: 6e 67 20 61 6e 64 20 66 75 6c 6c 79 20 70 6f 70  ng and fully pop
4c30: 75 6c 61 74 69 6e 67 20 65 61 63 68 20 64 61 74  ulating each dat
4c40: 61 62 61 73 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69  abase.</li>..<li
4c50: 3e 54 68 65 20 3c 62 3e 64 65 63 6f 6d 70 72 65  >The <b>decompre
4c60: 73 73 69 6f 6e 20 74 69 6d 65 3c 2f 62 3e 20 77  ssion time</b> w
4c70: 69 6c 6c 20 62 65 20 74 68 65 20 74 69 6d 65 20  ill be the time 
4c80: 28 61 73 20 72 65 70 6f 72 74 65 64 20 62 79 20  (as reported by 
4c90: 3c 62 3e 73 70 61 74 69 61 6c 69 74 65 20 43 4c  <b>spatialite CL
4ca0: 49 3c 2f 62 3e 29 20 66 6f 72 20 65 78 65 63 75  I</b>) for execu
4cb0: 74 69 6e 67 20 61 6e 20 53 51 4c 20 73 63 72 69  ting an SQL scri
4cc0: 70 74 20 63 6f 6e 74 61 69 6e 69 6e 67 20 32 35  pt containing 25
4cd0: 36 20 3c 62 3e 53 45 4c 45 43 54 20 52 4c 32 5f  6 <b>SELECT RL2_
4ce0: 47 65 74 4d 61 70 49 6d 61 67 65 46 72 6f 6d 52  GetMapImageFromR
4cf0: 61 73 74 65 72 28 29 3c 2f 62 3e 20 73 74 61 74  aster()</b> stat
4d00: 65 6d 65 6e 74 73 2e 3c 62 72 3e 0d 0a 41 6c 6c  ements.<br>..All
4d10: 20 72 65 71 75 65 73 74 65 64 20 69 6d 61 67 65   requested image
4d20: 73 20 77 69 6c 6c 20 62 65 20 31 30 30 30 78 31  s will be 1000x1
4d30: 30 30 30 20 70 69 78 65 6c 73 20 61 74 20 66 75  000 pixels at fu
4d40: 6c 6c 20 72 65 73 6f 6c 75 74 69 6f 6e 2c 20 63  ll resolution, c
4d50: 65 6e 74 65 72 65 64 20 6f 6e 20 64 69 66 66 65  entered on diffe
4d60: 72 65 6e 74 20 6c 6f 63 61 74 69 6f 6e 73 20 61  rent locations a
4d70: 6e 64 20 61 64 6f 70 74 69 6e 67 20 76 61 72 69  nd adopting vari
4d80: 6f 75 73 20 53 4c 44 2f 53 45 20 73 74 79 6c 65  ous SLD/SE style
4d90: 73 2e 3c 62 72 3e 0d 0a 54 68 69 73 20 69 73 20  s.<br>..This is 
4da0: 61 73 73 75 6d 65 64 20 74 6f 20 62 65 20 61 20  assumed to be a 
4db0: 72 65 61 6c 69 73 74 69 63 20 61 6e 64 20 73 69  realistic and si
4dc0: 67 6e 69 66 69 63 61 74 69 76 65 20 65 76 61 6c  gnificative eval
4dd0: 75 61 74 69 6f 6e 2c 20 62 65 63 61 75 73 65 20  uation, because 
4de0: 69 74 20 62 61 73 69 63 61 6c 6c 79 20 63 6f 72  it basically cor
4df0: 72 65 73 70 6f 6e 64 73 20 74 6f 20 74 68 65 20  responds to the 
4e00: 74 79 70 69 63 61 6c 20 77 6f 72 6b 6c 6f 61 64  typical workload
4e10: 20 6f 66 20 61 6e 20 68 79 70 6f 74 68 65 74 69   of an hypotheti
4e20: 63 61 6c 20 57 4d 53 20 73 65 72 76 65 72 2e 3c  cal WMS server.<
4e30: 2f 6c 69 3e 20 0d 0a 3c 6c 69 3e 3c 62 3e 4e 6f  /li> ..<li><b>No
4e40: 74 65 3c 2f 62 3e 3a 20 74 68 65 20 6d 65 61 73  te</b>: the meas
4e50: 75 72 65 64 20 74 69 6d 69 6e 67 73 20 77 69 6c  ured timings wil
4e60: 6c 20 6e 6f 74 20 64 69 72 65 63 74 6c 79 20 63  l not directly c
4e70: 6f 72 72 65 73 70 6f 6e 64 20 74 6f 20 74 68 65  orrespond to the
4e80: 20 69 6e 74 72 69 6e 73 69 63 20 73 70 65 65 64   intrinsic speed
4e90: 20 6f 66 20 65 61 63 68 20 63 6f 6d 70 72 65 73   of each compres
4ea0: 73 69 6f 6e 20 6d 65 74 68 6f 64 2e 3c 62 72 3e  sion method.<br>
4eb0: 0d 0a 54 68 65 72 65 20 61 72 65 20 6f 62 76 69  ..There are obvi
4ec0: 6f 75 73 6c 79 20 73 65 76 65 72 61 6c 20 64 69  ously several di
4ed0: 73 74 75 72 62 69 6e 67 20 66 61 63 74 6f 72 73  sturbing factors
4ee0: 20 28 6d 61 69 6e 6c 79 20 64 75 65 20 74 6f 20   (mainly due to 
4ef0: 49 2f 4f 20 6f 70 65 72 61 74 69 6f 6e 73 29 20  I/O operations) 
4f00: 74 6f 20 62 65 20 74 61 6b 65 6e 20 69 6e 20 61  to be taken in a
4f10: 63 63 6f 75 6e 74 2e 3c 62 72 3e 0d 0a 48 6f 77  ccount.<br>..How
4f20: 65 76 65 72 20 74 68 65 20 6f 70 65 72 61 74 69  ever the operati
4f30: 6f 6e 61 6c 20 73 65 71 75 65 6e 63 65 20 69 73  onal sequence is
4f40: 20 73 74 72 69 63 74 6c 79 20 74 68 65 20 73 61   strictly the sa
4f50: 6d 65 20 66 6f 72 20 61 6c 6c 20 74 65 73 74 73  me for all tests
4f60: 20 62 61 73 65 64 20 6f 6e 20 74 68 65 20 73 61   based on the sa
4f70: 6d 65 20 73 61 6d 70 6c 65 2c 20 73 6f 20 74 68  me sample, so th
4f80: 65 20 75 6e 69 71 75 65 20 66 61 63 74 6f 72 20  e unique factor 
4f90: 65 78 70 6c 61 69 6e 69 6e 67 20 66 6f 72 20 64  explaining for d
4fa0: 69 66 66 65 72 65 6e 74 20 74 69 6d 69 6e 67 73  ifferent timings
4fb0: 20 69 73 20 74 68 65 20 63 6f 6d 70 72 65 73 73   is the compress
4fc0: 69 6f 6e 20 6d 65 74 68 6f 64 20 69 74 73 65 6c  ion method itsel
4fd0: 66 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a  f.</li>..</ul>..
4fe0: 3c 62 72 3e 0d 0a 3c 68 33 3e 54 65 73 74 20 23  <br>..<h3>Test #
4ff0: 35 20 2d 20 47 72 61 79 73 63 61 6c 65 20 52 61  5 - Grayscale Ra
5000: 73 74 65 72 20 43 6f 76 65 72 61 67 65 3c 2f 68  ster Coverage</h
5010: 33 3e 0d 0a 3c 74 61 62 6c 65 20 63 65 6c 6c 73  3>..<table cells
5020: 70 61 63 69 6e 67 3d 22 36 22 20 63 65 6c 6c 70  pacing="6" cellp
5030: 61 64 64 69 6e 67 3d 22 38 22 20 62 6f 72 64 65  adding="8" borde
5040: 72 3d 22 31 22 20 62 67 63 6f 6c 6f 72 3d 22 23  r="1" bgcolor="#
5050: 66 66 66 66 65 30 22 3e 0d 0a 3c 74 72 3e 3c 74  ffffe0">..<tr><t
5060: 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66  h bgcolor="#d0ff
5070: 39 30 22 3e 43 6f 6d 70 72 65 73 73 69 6f 6e 20  90">Compression 
5080: 4d 65 74 68 6f 64 3c 2f 74 68 3e 3c 74 68 20 62  Method</th><th b
5090: 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22  gcolor="#d0ff90"
50a0: 3e 44 42 20 53 69 7a 65 3c 2f 74 68 3e 3c 74 68  >DB Size</th><th
50b0: 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39   bgcolor="#d0ff9
50c0: 30 22 3e 43 6f 6d 70 72 65 73 73 69 6f 6e 20 52  0">Compression R
50d0: 61 74 69 6f 3c 2f 74 68 3e 3c 74 68 20 62 67 63  atio</th><th bgc
50e0: 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 43  olor="#d0ff90">C
50f0: 6f 6d 70 72 65 73 73 69 6f 6e 20 54 69 6d 65 3c  ompression Time<
5100: 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d  /th><th bgcolor=
5110: 22 23 64 30 66 66 39 30 22 3e 44 65 63 6f 6d 70  "#d0ff90">Decomp
5120: 72 65 73 73 69 6f 6e 20 54 69 6d 65 3c 2f 74 68  ression Time</th
5130: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c  ></tr>..<tr>...<
5140: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72  td align="center
5150: 22 3e 3c 62 3e 4e 4f 4e 45 3c 2f 62 3e 20 3c 69  "><b>NONE</b> <i
5160: 3e 6e 6f 20 63 6f 6d 70 72 65 73 73 69 6f 6e 3c  >no compression<
5170: 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67  /i></td><td alig
5180: 6e 3d 22 72 69 67 68 74 22 3e 34 38 31 20 4d 42  n="right">481 MB
5190: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22  </td><td align="
51a0: 63 65 6e 74 65 72 22 3e 31 2e 30 30 3c 2f 74 64  center">1.00</td
51b0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68  ><td align="righ
51c0: 74 22 3e 35 34 73 65 63 3c 2f 74 64 3e 3c 74 64  t">54sec</td><td
51d0: 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31   align="right">1
51e0: 6d 69 6e 20 34 34 73 65 63 3c 2f 74 64 3e 0d 0a  min 44sec</td>..
51f0: 3c 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63 6f 6c  </tr>..<tr bgcol
5200: 6f 72 3d 22 23 64 66 64 64 63 30 22 3e 0d 0a 09  or="#dfddc0">...
5210: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65  <td align="cente
5220: 72 22 3e 3c 62 3e 4c 5a 34 3c 2f 62 3e 20 3c 69  r"><b>LZ4</b> <i
5230: 3e 76 65 72 79 20 66 61 73 74 20 63 6f 6d 70 72  >very fast compr
5240: 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c  ession</i></td><
5250: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22  td align="right"
5260: 3e 34 31 36 20 4d 42 3c 2f 74 64 3e 3c 74 64 20  >416 MB</td><td 
5270: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31  align="center">1
5280: 2e 31 36 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67  .16</td><td alig
5290: 6e 3d 22 72 69 67 68 74 22 3e 35 39 73 65 63 3c  n="right">59sec<
52a0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72  /td><td align="r
52b0: 69 67 68 74 22 3e 31 6d 69 6e 20 34 38 73 65 63  ight">1min 48sec
52c0: 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74  </td>..</tr>..<t
52d0: 72 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22  r>...<td align="
52e0: 63 65 6e 74 65 72 22 3e 3c 62 3e 44 45 46 4c 41  center"><b>DEFLA
52f0: 54 45 3c 2f 62 3e 20 3c 69 3e 7a 69 70 20 63 6f  TE</b> <i>zip co
5300: 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74  mpression</i></t
5310: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67  d><td align="rig
5320: 68 74 22 3e 33 34 39 20 4d 42 3c 2f 74 64 3e 3c  ht">349 MB</td><
5330: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72  td align="center
5340: 22 3e 31 2e 33 38 3c 2f 74 64 3e 3c 74 64 20 61  ">1.38</td><td a
5350: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69  lign="right">1mi
5360: 6e 20 35 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61  n 5sec</td><td a
5370: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69  lign="right">1mi
5380: 6e 20 34 34 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f  n 44sec</td>..</
5390: 74 72 3e 0d 0a 3c 74 72 20 62 67 63 6f 6c 6f 72  tr>..<tr bgcolor
53a0: 3d 22 23 64 66 64 64 63 30 22 3e 0d 0a 09 3c 74  ="#dfddc0">...<t
53b0: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22  d align="center"
53c0: 3e 3c 62 3e 5a 53 54 44 3c 2f 62 3e 20 3c 69 3e  ><b>ZSTD</b> <i>
53d0: 66 61 73 74 20 63 6f 6d 70 72 65 73 73 69 6f 6e  fast compression
53e0: 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69  </i></td><td ali
53f0: 67 6e 3d 22 72 69 67 68 74 22 3e 33 34 36 20 4d  gn="right">346 M
5400: 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d  B</td><td align=
5410: 22 63 65 6e 74 65 72 22 3e 31 2e 33 39 3c 2f 74  "center">1.39</t
5420: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67  d><td align="rig
5430: 68 74 22 3e 31 6d 69 6e 20 30 73 65 63 3c 2f 74  ht">1min 0sec</t
5440: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67  d><td align="rig
5450: 68 74 22 3e 31 6d 69 6e 20 35 34 73 65 63 3c 2f  ht">1min 54sec</
5460: 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e  td>..</tr>..<tr>
5470: 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65  ...<td align="ce
5480: 6e 74 65 72 22 3e 3c 62 3e 4c 5a 4d 41 3c 2f 62  nter"><b>LZMA</b
5490: 3e 20 3c 69 3e 37 2d 7a 69 70 20 63 6f 6d 70 72  > <i>7-zip compr
54a0: 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c  ession</i></td><
54b0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22  td align="right"
54c0: 3e 33 34 35 20 4d 42 3c 2f 74 64 3e 3c 74 64 20  >345 MB</td><td 
54d0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31  align="center">1
54e0: 2e 34 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67  .40</td><td alig
54f0: 6e 3d 22 72 69 67 68 74 22 3e 33 6d 69 6e 20 32  n="right">3min 2
5500: 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67  sec</td><td alig
5510: 6e 3d 22 72 69 67 68 74 22 3e 32 6d 69 6e 20 33  n="right">2min 3
5520: 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d  sec</td>..</tr>.
5530: 0a 3c 74 72 20 62 67 63 6f 6c 6f 72 3d 22 23 64  .<tr bgcolor="#d
5540: 66 64 64 63 30 22 3e 0d 0a 09 3c 74 64 20 61 6c  fddc0">...<td al
5550: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e  ign="center"><b>
5560: 50 4e 47 3c 2f 62 3e 20 3c 69 3e 6c 6f 73 73 6c  PNG</b> <i>lossl
5570: 65 73 73 20 69 6d 61 67 65 20 66 6f 72 6d 61 74  ess image format
5580: 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69  </i></td><td ali
5590: 67 6e 3d 22 72 69 67 68 74 22 3e 33 34 36 20 4d  gn="right">346 M
55a0: 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d  B</td><td align=
55b0: 22 63 65 6e 74 65 72 22 3e 31 2e 33 39 3c 2f 74  "center">1.39</t
55c0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67  d><td align="rig
55d0: 68 74 22 3e 31 6d 69 6e 20 38 73 65 63 3c 2f 74  ht">1min 8sec</t
55e0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67  d><td align="rig
55f0: 68 74 22 3e 31 6d 69 6e 20 34 31 73 65 63 3c 2f  ht">1min 41sec</
5600: 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e  td>..</tr>..<tr>
5610: 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65  ...<td align="ce
5620: 6e 74 65 72 22 3e 3c 62 3e 4c 4c 5f 57 45 42 50  nter"><b>LL_WEBP
5630: 3c 2f 62 3e 20 3c 69 3e 6c 6f 73 73 6c 65 73 73  </b> <i>lossless
5640: 20 57 45 62 50 3c 2f 69 3e 3c 2f 74 64 3e 3c 74   WEbP</i></td><t
5650: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e  d align="right">
5660: 33 32 30 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61  320 MB</td><td a
5670: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e  lign="center">1.
5680: 35 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e  50</td><td align
5690: 3d 22 72 69 67 68 74 22 3e 34 6d 69 6e 20 32 37  ="right">4min 27
56a0: 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67  sec</td><td alig
56b0: 6e 3d 22 72 69 67 68 74 22 3e 32 6d 69 6e 20 30  n="right">2min 0
56c0: 32 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e  2sec</td>..</tr>
56d0: 0d 0a 3c 74 72 20 62 67 63 6f 6c 6f 72 3d 22 23  ..<tr bgcolor="#
56e0: 64 66 64 64 63 30 22 3e 0d 0a 09 3c 74 64 20 61  dfddc0">...<td a
56f0: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62  lign="center"><b
5700: 3e 4c 4c 5f 4a 50 32 3c 2f 62 3e 20 3c 69 3e 6c  >LL_JP2</b> <i>l
5710: 6f 73 73 6c 65 73 73 20 4a 70 65 67 32 30 30 30  ossless Jpeg2000
5720: 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69  </i></td><td ali
5730: 67 6e 3d 22 72 69 67 68 74 22 3e 33 32 33 20 4d  gn="right">323 M
5740: 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d  B</td><td align=
5750: 22 63 65 6e 74 65 72 22 3e 31 2e 34 39 3c 2f 74  "center">1.49</t
5760: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67  d><td align="rig
5770: 68 74 22 3e 34 6d 69 6e 20 32 36 73 65 63 3c 2f  ht">4min 26sec</
5780: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69  td><td align="ri
5790: 67 68 74 22 3e 32 6d 69 6e 20 32 31 73 65 63 3c  ght">2min 21sec<
57a0: 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72  /td>..</tr>..<tr
57b0: 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63  >...<td align="c
57c0: 65 6e 74 65 72 22 3e 3c 62 3e 43 48 41 52 4c 53  enter"><b>CHARLS
57d0: 3c 2f 62 3e 20 3c 69 3e 6c 6f 73 73 6c 65 73 73  </b> <i>lossless
57e0: 20 4a 50 45 47 3c 2f 69 3e 3c 2f 74 64 3e 3c 74   JPEG</i></td><t
57f0: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e  d align="right">
5800: 33 33 39 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61  339 MB</td><td a
5810: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e  lign="center">1.
5820: 34 32 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e  42</td><td align
5830: 3d 22 72 69 67 68 74 22 3e 32 6d 69 6e 20 33 38  ="right">2min 38
5840: 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67  sec</td><td alig
5850: 6e 3d 22 72 69 67 68 74 22 3e 32 6d 69 6e 20 36  n="right">2min 6
5860: 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d  sec</td>..</tr>.
5870: 0a 3c 2f 74 61 62 6c 65 3e 0d 0a 3c 62 3e 51 75  .</table>..<b>Qu
5880: 69 63 6b 20 61 73 73 65 73 73 6d 65 6e 74 3a 3c  ick assessment:<
5890: 2f 62 3e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 74  /b>..<ul>..<li>t
58a0: 68 69 73 20 74 65 73 74 20 77 61 73 20 62 61 73  his test was bas
58b0: 65 64 20 6f 6e 20 61 20 73 61 6d 70 6c 65 20 6f  ed on a sample o
58c0: 66 20 32 35 20 42 26 57 20 54 49 46 46 2b 54 46  f 25 B&W TIFF+TF
58d0: 57 20 53 65 63 74 69 6f 6e 73 20 28 66 6f 72 6d  W Sections (form
58e0: 69 6e 67 20 61 20 35 78 35 20 73 71 75 61 72 65  ing a 5x5 square
58f0: 29 20 63 65 6e 74 65 72 65 64 20 61 72 6f 75 6e  ) centered aroun
5900: 64 20 74 68 65 20 63 69 74 79 20 6f 66 20 46 6c  d the city of Fl
5910: 6f 72 65 6e 63 65 2e 3c 62 72 3e 0d 0a 54 68 65  orence.<br>..The
5920: 20 6f 72 69 67 69 6e 61 6c 20 64 61 74 61 73 65   original datase
5930: 74 20 69 73 20 74 68 65 20 4f 72 74 6f 70 68 6f  t is the Ortopho
5940: 74 6f 20 69 6d 61 67 65 72 79 20 28 79 65 61 72  to imagery (year
5950: 20 31 39 37 38 3b 20 73 63 61 6c 65 20 31 3a 31   1978; scale 1:1
5960: 30 30 30 30 29 20 70 75 62 6c 69 73 68 65 64 20  0000) published 
5970: 62 79 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70  by <a href="http
5980: 3a 2f 2f 77 77 77 35 30 32 2e 72 65 67 69 6f 6e  ://www502.region
5990: 65 2e 74 6f 73 63 61 6e 61 2e 69 74 2f 67 65 6f  e.toscana.it/geo
59a0: 73 63 6f 70 69 6f 2f 63 61 72 74 6f 74 65 63 61  scopio/cartoteca
59b0: 2e 68 74 6d 6c 22 3e 54 75 73 63 61 6e 79 3c 2f  .html">Tuscany</
59c0: 61 3e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 61 73 20  a></li>..<li>as 
59d0: 77 65 20 77 65 72 65 20 65 78 70 65 63 74 69 6e  we were expectin
59e0: 67 20 66 72 6f 6d 20 6f 75 72 20 70 72 65 76 69  g from our previ
59f0: 6f 75 73 20 74 65 73 74 73 2c 20 6c 6f 73 73 6c  ous tests, lossl
5a00: 65 73 73 20 63 6f 70 72 65 73 73 69 6f 6e 20 63  ess copression c
5a10: 61 6e 20 76 65 72 79 20 64 69 66 66 69 63 75 6c  an very difficul
5a20: 74 20 72 65 61 63 68 20 73 74 72 6f 6e 67 20 63  t reach strong c
5a30: 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f  ompression ratio
5a40: 73 20 77 68 65 6e 20 61 70 70 6c 69 65 64 20 74  s when applied t
5a50: 6f 20 70 68 6f 74 6f 67 72 61 70 68 69 63 20 69  o photographic i
5a60: 6d 61 67 65 73 2e 3c 2f 6c 69 3e 20 0d 0a 3c 6c  mages.</li> ..<l
5a70: 69 3e 69 6e 20 74 68 69 73 20 73 70 65 63 69 63  i>in this specic
5a80: 20 74 65 73 74 20 44 45 46 4c 41 54 45 2c 20 5a   test DEFLATE, Z
5a90: 53 54 44 2c 20 61 6e 64 20 50 4e 47 20 73 63 6f  STD, and PNG sco
5aa0: 72 65 20 6d 6f 72 65 20 6f 72 20 6c 65 73 73 20  re more or less 
5ab0: 65 71 75 69 76 61 6c 65 6e 74 20 63 6f 6d 70 72  equivalent compr
5ac0: 65 73 73 69 6f 6e 20 72 61 74 69 6f 73 2c 20 61  ession ratios, a
5ad0: 6e 64 20 74 68 65 79 20 6d 61 72 6b 20 76 65 72  nd they mark ver
5ae0: 79 20 73 69 6d 69 6c 61 72 20 63 6f 6d 70 72 65  y similar compre
5af0: 73 73 69 6f 6e 20 61 6e 64 20 64 65 63 6f 6d 70  ssion and decomp
5b00: 72 65 73 73 69 6f 6e 20 74 69 6d 69 6e 67 73 2e  ression timings.
5b10: 3c 62 72 3e 0d 0a 49 74 27 73 20 77 6f 72 74 68  <br>..It's worth
5b20: 20 6e 6f 74 69 6e 67 20 74 68 61 74 20 44 45 46   noting that DEF
5b30: 4c 41 54 45 2c 20 5a 53 54 44 20 61 6e 64 20 50  LATE, ZSTD and P
5b40: 4e 47 20 72 65 71 75 69 72 65 20 6d 6f 72 65 20  NG require more 
5b50: 6f 72 20 6c 65 73 73 20 74 68 65 20 73 61 6d 65  or less the same
5b60: 20 64 65 63 6f 6d 70 72 65 73 73 69 6f 6e 20 74   decompression t
5b70: 69 6d 65 20 74 68 61 6e 20 4e 4f 4e 45 20 28 75  ime than NONE (u
5b80: 6e 63 6f 6d 70 72 65 73 73 65 64 29 2c 20 73 6f  ncompressed), so
5b90: 20 74 68 65 79 20 64 6f 6e 27 74 20 63 61 75 73   they don't caus
5ba0: 65 20 61 6e 79 20 72 65 6e 64 65 72 69 6e 67 20  e any rendering 
5bb0: 62 6f 74 74 6c 65 6e 65 63 6b 2e 3c 2f 6c 69 3e  bottleneck.</li>
5bc0: 20 0d 0a 3c 6c 69 3e 61 73 20 77 65 20 77 65 72   ..<li>as we wer
5bd0: 65 20 65 78 70 65 63 74 69 6e 67 20 4c 5a 34 20  e expecting LZ4 
5be0: 69 73 20 66 61 73 74 20 62 75 74 20 75 6e 61 62  is fast but unab
5bf0: 6c 65 20 74 6f 20 72 65 61 63 68 20 61 20 64 65  le to reach a de
5c00: 63 65 6e 74 20 63 6f 6d 70 72 65 73 73 69 6f 6e  cent compression
5c10: 20 72 61 74 69 6f 2e 3c 2f 6c 69 3e 0d 0a 3c 6c   ratio.</li>..<l
5c20: 69 3e 4c 5a 4d 41 20 63 6f 6e 66 69 72 6d 73 20  i>LZMA confirms 
5c30: 74 6f 20 62 65 20 76 65 72 79 20 73 6c 6f 77 20  to be very slow 
5c40: 62 6f 74 68 20 77 68 65 6e 20 63 6f 6d 70 72 65  both when compre
5c50: 73 73 69 6e 67 20 61 6e 64 20 64 65 63 6f 6d 70  ssing and decomp
5c60: 72 65 73 73 69 6e 67 2e 3c 2f 6c 69 3e 0d 0a 3c  ressing.</li>..<
5c70: 6c 69 3e 54 68 65 20 72 65 61 6c 20 64 65 6c 75  li>The real delu
5c80: 73 69 6f 6e 20 63 6f 6d 65 73 20 66 72 6f 6d 20  sion comes from 
5c90: 4c 4c 5f 57 45 42 50 2c 20 4c 4c 5f 4a 50 32 20  LL_WEBP, LL_JP2 
5ca0: 61 6e 64 20 43 48 41 52 4c 53 2e 3c 62 72 3e 0d  and CHARLS.<br>.
5cb0: 0a 54 68 65 73 65 20 61 6c 67 6f 72 69 74 68 6d  .These algorithm
5cc0: 73 20 61 72 65 20 73 70 65 63 69 66 69 63 61 6c  s are specifical
5cd0: 6c 79 20 64 65 73 69 67 6e 65 64 20 66 6f 72 20  ly designed for 
5ce0: 63 6f 6d 70 72 65 73 73 69 6e 67 20 70 68 6f 74  compressing phot
5cf0: 6f 67 72 61 70 68 69 63 20 69 6d 61 67 65 72 79  ographic imagery
5d00: 2c 20 62 75 74 20 74 68 65 79 20 61 72 65 20 75  , but they are u
5d10: 6e 61 62 6c 65 20 74 6f 20 6f 75 74 70 65 72 66  nable to outperf
5d20: 6f 72 6d 20 74 68 65 20 6f 74 68 65 72 20 67 65  orm the other ge
5d30: 6e 65 72 69 63 20 6d 75 6c 74 69 70 75 72 70 6f  neric multipurpo
5d40: 73 65 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 61  se compression a
5d50: 6c 67 6f 72 69 74 68 6d 73 2e 3c 62 72 3e 0d 0a  lgorithms.<br>..
5d60: 54 68 65 79 20 73 63 6f 72 65 20 6d 61 72 67 69  They score margi
5d70: 6e 61 6c 6c 79 20 62 65 74 74 65 72 20 63 6f 6d  nally better com
5d80: 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f 73 2c  pression ratios,
5d90: 20 62 75 74 20 74 68 65 79 20 61 72 65 20 64 65   but they are de
5da0: 61 64 6c 79 20 73 6c 6f 77 2e 0d 0a 54 68 65 20  adly slow...The 
5db0: 67 61 6d 65 20 69 73 20 20 6e 6f 74 20 77 6f 72  game is  not wor
5dc0: 74 68 20 74 68 65 20 63 61 6e 64 6c 65 2e 3c 2f  th the candle.</
5dd0: 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 62 72 3e  li>..</ul>..<br>
5de0: 0d 0a 3c 62 72 3e 0d 0a 3c 68 33 3e 54 65 73 74  ..<br>..<h3>Test
5df0: 20 23 36 20 2d 20 52 47 42 20 52 61 73 74 65 72   #6 - RGB Raster
5e00: 20 43 6f 76 65 72 61 67 65 3c 2f 68 33 3e 0d 0a   Coverage</h3>..
5e10: 3c 74 61 62 6c 65 20 63 65 6c 6c 73 70 61 63 69  <table cellspaci
5e20: 6e 67 3d 22 36 22 20 63 65 6c 6c 70 61 64 64 69  ng="6" cellpaddi
5e30: 6e 67 3d 22 38 22 20 62 6f 72 64 65 72 3d 22 31  ng="8" border="1
5e40: 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66 66 66  " bgcolor="#ffff
5e50: 65 30 22 3e 0d 0a 3c 74 72 3e 3c 74 68 20 62 67  e0">..<tr><th bg
5e60: 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e  color="#d0ff90">
5e70: 43 6f 6d 70 72 65 73 73 69 6f 6e 20 4d 65 74 68  Compression Meth
5e80: 6f 64 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c  od</th><th bgcol
5e90: 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 44 42 20  or="#d0ff90">DB 
5ea0: 53 69 7a 65 3c 2f 74 68 3e 3c 74 68 20 62 67 63  Size</th><th bgc
5eb0: 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 43  olor="#d0ff90">C
5ec0: 6f 6d 70 72 65 73 73 69 6f 6e 20 52 61 74 69 6f  ompression Ratio
5ed0: 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f 72  </th><th bgcolor
5ee0: 3d 22 23 64 30 66 66 39 30 22 3e 43 6f 6d 70 72  ="#d0ff90">Compr
5ef0: 65 73 73 69 6f 6e 20 54 69 6d 65 3c 2f 74 68 3e  ession Time</th>
5f00: 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30  <th bgcolor="#d0
5f10: 66 66 39 30 22 3e 44 65 63 6f 6d 70 72 65 73 73  ff90">Decompress
5f20: 69 6f 6e 20 54 69 6d 65 3c 2f 74 68 3e 3c 2f 74  ion Time</th></t
5f30: 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20 61  r>..<tr>...<td a
5f40: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62  lign="center"><b
5f50: 3e 4e 4f 4e 45 3c 2f 62 3e 20 3c 69 3e 6e 6f 20  >NONE</b> <i>no 
5f60: 63 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c  compression</i><
5f70: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72  /td><td align="r
5f80: 69 67 68 74 22 3e 31 2e 35 31 20 47 42 3c 2f 74  ight">1.51 GB</t
5f90: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e  d><td align="cen
5fa0: 74 65 72 22 3e 31 2e 30 30 3c 2f 74 64 3e 3c 74  ter">1.00</td><t
5fb0: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e  d align="right">
5fc0: 31 6d 69 6e 20 31 37 73 65 63 3c 2f 74 64 3e 3c  1min 17sec</td><
5fd0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22  td align="right"
5fe0: 3e 31 6d 69 6e 20 35 31 73 65 63 3c 2f 74 64 3e  >1min 51sec</td>
5ff0: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63  ..</tr>..<tr bgc
6000: 6f 6c 6f 72 3d 22 23 64 66 64 64 63 30 22 3e 0d  olor="#dfddc0">.
6010: 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e  ..<td align="cen
6020: 74 65 72 22 3e 3c 62 3e 4c 5a 34 3c 2f 62 3e 20  ter"><b>LZ4</b> 
6030: 3c 69 3e 76 65 72 79 20 66 61 73 74 20 63 6f 6d  <i>very fast com
6040: 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 64  pression</i></td
6050: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68  ><td align="righ
6060: 74 22 3e 31 2e 32 31 20 47 42 3c 2f 74 64 3e 3c  t">1.21 GB</td><
6070: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72  td align="center
6080: 22 3e 31 2e 32 35 3c 2f 74 64 3e 3c 74 64 20 61  ">1.25</td><td a
6090: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69  lign="right">1mi
60a0: 6e 20 33 31 73 65 63 3c 2f 74 64 3e 3c 74 64 20  n 31sec</td><td 
60b0: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d  align="right">1m
60c0: 69 6e 20 34 37 73 65 63 3c 2f 74 64 3e 0d 0a 3c  in 47sec</td>..<
60d0: 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64  /tr>..<tr>...<td
60e0: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e   align="center">
60f0: 3c 62 3e 44 45 46 4c 41 54 45 3c 2f 62 3e 20 3c  <b>DEFLATE</b> <
6100: 69 3e 7a 69 70 20 63 6f 6d 70 72 65 73 73 69 6f  i>zip compressio
6110: 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c  n</i></td><td al
6120: 69 67 6e 3d 22 72 69 67 68 74 22 3e 38 30 30 20  ign="right">800 
6130: 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e  MB</td><td align
6140: 3d 22 63 65 6e 74 65 72 22 3e 31 2e 39 34 3c 2f  ="center">1.94</
6150: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69  td><td align="ri
6160: 67 68 74 22 3e 31 6d 69 6e 20 35 36 73 65 63 3c  ght">1min 56sec<
6170: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72  /td><td align="r
6180: 69 67 68 74 22 3e 31 6d 69 6e 20 34 30 73 65 63  ight">1min 40sec
6190: 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74  </td>..</tr>..<t
61a0: 72 20 62 67 63 6f 6c 6f 72 3d 22 23 64 66 64 64  r bgcolor="#dfdd
61b0: 63 30 22 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e  c0">...<td align
61c0: 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 5a 53 54  ="center"><b>ZST
61d0: 44 3c 2f 62 3e 20 3c 69 3e 66 61 73 74 20 63 6f  D</b> <i>fast co
61e0: 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74  mpression</i></t
61f0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67  d><td align="rig
6200: 68 74 22 3e 38 31 36 20 4d 42 3c 2f 74 64 3e 3c  ht">816 MB</td><
6210: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72  td align="center
6220: 22 3e 31 2e 39 30 3c 2f 74 64 3e 3c 74 64 20 61  ">1.90</td><td a
6230: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69  lign="right">1mi
6240: 6e 20 32 39 73 65 63 3c 2f 74 64 3e 3c 74 64 20  n 29sec</td><td 
6250: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d  align="right">1m
6260: 69 6e 20 33 37 73 65 63 3c 2f 74 64 3e 0d 0a 3c  in 37sec</td>..<
6270: 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64  /tr>..<tr>...<td
6280: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e   align="center">
6290: 3c 62 3e 4c 5a 4d 41 3c 2f 62 3e 20 3c 69 3e 37  <b>LZMA</b> <i>7
62a0: 2d 7a 69 70 20 63 6f 6d 70 72 65 73 73 69 6f 6e  -zip compression
62b0: 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69  </i></td><td ali
62c0: 67 6e 3d 22 72 69 67 68 74 22 3e 37 31 30 20 4d  gn="right">710 M
62d0: 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d  B</td><td align=
62e0: 22 63 65 6e 74 65 72 22 3e 32 2e 31 38 3c 2f 74  "center">2.18</t
62f0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67  d><td align="rig
6300: 68 74 22 3e 37 6d 69 6e 20 32 33 73 65 63 3c 2f  ht">7min 23sec</
6310: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69  td><td align="ri
6320: 67 68 74 22 3e 32 6d 69 6e 20 31 31 73 65 63 3c  ght">2min 11sec<
6330: 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72  /td>..</tr>..<tr
6340: 20 62 67 63 6f 6c 6f 72 3d 22 23 64 66 64 64 63   bgcolor="#dfddc
6350: 30 22 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d  0">...<td align=
6360: 22 63 65 6e 74 65 72 22 3e 3c 62 3e 50 4e 47 3c  "center"><b>PNG<
6370: 2f 62 3e 20 3c 69 3e 6c 6f 73 73 6c 65 73 73 20  /b> <i>lossless 
6380: 69 6d 61 67 65 20 66 6f 72 6d 61 74 3c 2f 69 3e  image format</i>
6390: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22  </td><td align="
63a0: 72 69 67 68 74 22 3e 38 33 30 20 4d 42 3c 2f 74  right">830 MB</t
63b0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e  d><td align="cen
63c0: 74 65 72 22 3e 31 2e 38 36 3c 2f 74 64 3e 3c 74  ter">1.86</td><t
63d0: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e  d align="right">
63e0: 32 6d 69 6e 20 32 39 73 65 63 3c 2f 74 64 3e 3c  2min 29sec</td><
63f0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22  td align="right"
6400: 3e 31 6d 69 6e 20 34 39 73 65 63 3c 2f 74 64 3e  >1min 49sec</td>
6410: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09  ..</tr>..<tr>...
6420: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65  <td align="cente
6430: 72 22 3e 3c 62 3e 4c 4c 5f 57 45 42 50 3c 2f 62  r"><b>LL_WEBP</b
6440: 3e 20 3c 69 3e 6c 6f 73 73 6c 65 73 73 20 57 45  > <i>lossless WE
6450: 62 50 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61  bP</i></td><td a
6460: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 35 32 35  lign="right">525
6470: 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67   MB</td><td alig
6480: 6e 3d 22 63 65 6e 74 65 72 22 3e 32 2e 39 35 3c  n="center">2.95<
6490: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72  /td><td align="r
64a0: 69 67 68 74 22 3e 37 6d 69 6e 20 31 38 73 65 63  ight">7min 18sec
64b0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22  </td><td align="
64c0: 72 69 67 68 74 22 3e 31 6d 69 6e 20 34 38 73 65  right">1min 48se
64d0: 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c  c</td>..</tr>..<
64e0: 74 72 20 62 67 63 6f 6c 6f 72 3d 22 23 64 66 64  tr bgcolor="#dfd
64f0: 64 63 30 22 3e 0d 0a 09 3c 74 64 20 61 6c 69 67  dc0">...<td alig
6500: 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 4c 4c  n="center"><b>LL
6510: 5f 4a 50 32 3c 2f 62 3e 20 3c 69 3e 6c 6f 73 73  _JP2</b> <i>loss
6520: 6c 65 73 73 20 4a 70 65 67 32 30 30 30 3c 2f 69  less Jpeg2000</i
6530: 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d  ></td><td align=
6540: 22 72 69 67 68 74 22 3e 38 30 32 20 4d 42 3c 2f  "right">802 MB</
6550: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65  td><td align="ce
6560: 6e 74 65 72 22 3e 31 2e 39 32 3c 2f 74 64 3e 3c  nter">1.92</td><
6570: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22  td align="right"
6580: 3e 31 31 6d 69 6e 20 33 31 73 65 63 3c 2f 74 64  >11min 31sec</td
6590: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68  ><td align="righ
65a0: 74 22 3e 33 6d 69 6e 20 31 36 73 65 63 3c 2f 74  t">3min 16sec</t
65b0: 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d  d>..</tr>..<tr>.
65c0: 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e  ..<td align="cen
65d0: 74 65 72 22 3e 3c 62 3e 43 48 41 52 4c 53 3c 2f  ter"><b>CHARLS</
65e0: 62 3e 20 3c 69 3e 6c 6f 73 73 6c 65 73 73 20 4a  b> <i>lossless J
65f0: 50 45 47 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20  PEG</i></td><td 
6600: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 39 31  align="right">91
6610: 32 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69  2 MB</td><td ali
6620: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e 37 30  gn="center">1.70
6630: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22  </td><td align="
6640: 72 69 67 68 74 22 3e 37 6d 69 6e 20 35 34 73 65  right">7min 54se
6650: 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d  c</td><td align=
6660: 22 72 69 67 68 74 22 3e 32 6d 69 6e 20 34 37 73  "right">2min 47s
6670: 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a  ec</td>..</tr>..
6680: 3c 2f 74 61 62 6c 65 3e 0d 0a 3c 62 3e 51 75 69  </table>..<b>Qui
6690: 63 6b 20 61 73 73 65 73 73 6d 65 6e 74 3a 3c 2f  ck assessment:</
66a0: 62 3e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 74 68  b>..<ul>..<li>th
66b0: 69 73 20 74 65 73 74 20 77 61 73 20 62 61 73 65  is test was base
66c0: 64 20 6f 6e 20 61 20 73 61 6d 70 6c 65 20 6f 66  d on a sample of
66d0: 20 39 20 52 47 42 20 54 49 46 46 2b 54 46 57 20   9 RGB TIFF+TFW 
66e0: 53 65 63 74 69 6f 6e 73 20 28 66 6f 72 6d 69 6e  Sections (formin
66f0: 67 20 61 20 33 78 33 20 73 71 75 61 72 65 29 20  g a 3x3 square) 
6700: 63 65 6e 74 65 72 65 64 20 61 72 6f 75 6e 64 20  centered around 
6710: 74 68 65 20 74 6f 77 6e 20 6f 66 20 53 61 6e 20  the town of San 
6720: 47 69 6f 76 61 6e 6e 69 20 56 61 6c 64 61 72 6e  Giovanni Valdarn
6730: 6f 2e 3c 62 72 3e 0d 0a 54 68 65 20 6f 72 69 67  o.<br>..The orig
6740: 69 6e 61 6c 20 64 61 74 61 73 65 74 20 69 73 20  inal dataset is 
6750: 74 68 65 20 65 78 61 63 74 6c 79 20 74 68 65 20  the exactly the 
6760: 73 61 6d 65 20 77 65 27 6c 6c 20 73 65 65 20 69  same we'll see i
6770: 6e 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20  n the following 
6780: 74 65 73 74 2c 20 62 75 74 20 69 6e 20 74 68 69  test, but in thi
6790: 73 20 63 61 73 65 20 74 68 65 20 4e 65 61 72 20  s case the Near 
67a0: 49 6e 66 72 61 72 65 64 20 73 70 65 63 74 72 61  Infrared spectra
67b0: 6c 20 62 61 6e 64 20 77 61 73 20 63 6f 6d 70 6c  l band was compl
67c0: 65 74 65 6c 79 20 72 65 6d 6f 76 65 64 2e 3c 2f  etely removed.</
67d0: 6c 69 3e 0d 0a 3c 6c 69 3e 74 68 69 73 20 74 65  li>..<li>this te
67e0: 73 74 20 73 69 6d 70 6c 79 20 63 6f 6e 66 69 72  st simply confir
67f0: 6d 73 20 74 68 65 20 67 65 6e 65 72 61 6c 20 70  ms the general p
6800: 61 74 74 65 72 6e 20 77 65 27 76 65 20 61 6c 72  attern we've alr
6810: 65 61 64 79 20 73 65 65 6e 20 61 62 6f 75 74 20  eady seen about 
6820: 47 72 61 79 73 63 61 6c 65 2e 3c 2f 6c 69 3e 0d  Grayscale.</li>.
6830: 0a 3c 6c 69 3e 74 68 65 20 75 6e 69 71 75 65 20  .<li>the unique 
6840: 65 78 63 65 70 74 69 6f 6e 20 69 73 20 4c 4c 5f  exception is LL_
6850: 57 45 42 50 2c 20 74 68 61 74 20 69 6e 20 74 68  WEBP, that in th
6860: 69 73 20 63 61 73 65 20 73 63 6f 72 65 73 20 74  is case scores t
6870: 68 65 20 62 65 73 74 20 63 6f 6d 70 72 65 73 73  he best compress
6880: 69 6f 6e 20 72 61 74 69 6f 20 6f 66 20 74 68 65  ion ratio of the
6890: 6d 20 61 6c 6c 2c 20 61 6e 64 20 6d 61 72 6b 73  m all, and marks
68a0: 20 61 20 66 61 69 72 6c 79 20 67 6f 6f 64 20 64   a fairly good d
68b0: 65 63 6f 6d 70 72 65 73 73 69 6f 6e 20 74 69 6d  ecompression tim
68c0: 65 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a  e.</li>..</ul>..
68d0: 3c 62 72 3e 0d 0a 3c 62 72 3e 0d 0a 3c 68 33 3e  <br>..<br>..<h3>
68e0: 54 65 73 74 20 23 37 20 2d 20 4d 75 6c 74 69 73  Test #7 - Multis
68f0: 70 65 63 74 72 61 6c 20 28 34 2d 62 61 6e 64 73  pectral (4-bands
6900: 29 20 52 61 73 74 65 72 20 43 6f 76 65 72 61 67  ) Raster Coverag
6910: 65 3c 2f 68 33 3e 0d 0a 3c 74 61 62 6c 65 20 63  e</h3>..<table c
6920: 65 6c 6c 73 70 61 63 69 6e 67 3d 22 36 22 20 63  ellspacing="6" c
6930: 65 6c 6c 70 61 64 64 69 6e 67 3d 22 38 22 20 62  ellpadding="8" b
6940: 6f 72 64 65 72 3d 22 31 22 20 62 67 63 6f 6c 6f  order="1" bgcolo
6950: 72 3d 22 23 66 66 66 66 65 30 22 3e 0d 0a 3c 74  r="#ffffe0">..<t
6960: 72 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23  r><th bgcolor="#
6970: 64 30 66 66 39 30 22 3e 43 6f 6d 70 72 65 73 73  d0ff90">Compress
6980: 69 6f 6e 20 4d 65 74 68 6f 64 3c 2f 74 68 3e 3c  ion Method</th><
6990: 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66  th bgcolor="#d0f
69a0: 66 39 30 22 3e 44 42 20 53 69 7a 65 3c 2f 74 68  f90">DB Size</th
69b0: 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64  ><th bgcolor="#d
69c0: 30 66 66 39 30 22 3e 43 6f 6d 70 72 65 73 73 69  0ff90">Compressi
69d0: 6f 6e 20 52 61 74 69 6f 3c 2f 74 68 3e 3c 74 68  on Ratio</th><th
69e0: 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39   bgcolor="#d0ff9
69f0: 30 22 3e 43 6f 6d 70 72 65 73 73 69 6f 6e 20 54  0">Compression T
6a00: 69 6d 65 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f  ime</th><th bgco
6a10: 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 44 65  lor="#d0ff90">De
6a20: 63 6f 6d 70 72 65 73 73 69 6f 6e 20 54 69 6d 65  compression Time
6a30: 3c 2f 74 68 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e  </th></tr>..<tr>
6a40: 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65  ...<td align="ce
6a50: 6e 74 65 72 22 3e 3c 62 3e 4e 4f 4e 45 3c 2f 62  nter"><b>NONE</b
6a60: 3e 20 3c 69 3e 6e 6f 20 63 6f 6d 70 72 65 73 73  > <i>no compress
6a70: 69 6f 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20  ion</i></td><td 
6a80: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 32 2e  align="right">2.
6a90: 30 31 20 47 42 3c 2f 74 64 3e 3c 74 64 20 61 6c  01 GB</td><td al
6aa0: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e 30  ign="center">1.0
6ab0: 30 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d  0</td><td align=
6ac0: 22 72 69 67 68 74 22 3e 33 6d 69 6e 20 31 38 73  "right">3min 18s
6ad0: 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e  ec</td><td align
6ae0: 3d 22 72 69 67 68 74 22 3e 31 6d 69 6e 20 35 35  ="right">1min 55
6af0: 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d  sec</td>..</tr>.
6b00: 0a 3c 74 72 20 62 67 63 6f 6c 6f 72 3d 22 23 64  .<tr bgcolor="#d
6b10: 66 64 64 63 30 22 3e 0d 0a 09 3c 74 64 20 61 6c  fddc0">...<td al
6b20: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e  ign="center"><b>
6b30: 4c 5a 34 3c 2f 62 3e 20 3c 69 3e 76 65 72 79 20  LZ4</b> <i>very 
6b40: 66 61 73 74 20 63 6f 6d 70 72 65 73 73 69 6f 6e  fast compression
6b50: 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69  </i></td><td ali
6b60: 67 6e 3d 22 72 69 67 68 74 22 3e 31 2e 36 31 20  gn="right">1.61 
6b70: 47 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e  GB</td><td align
6b80: 3d 22 63 65 6e 74 65 72 22 3e 31 2e 32 34 3c 2f  ="center">1.24</
6b90: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69  td><td align="ri
6ba0: 67 68 74 22 3e 33 6d 69 6e 20 34 31 73 65 63 3c  ght">3min 41sec<
6bb0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72  /td><td align="r
6bc0: 69 67 68 74 22 3e 31 6d 69 6e 20 34 38 73 65 63  ight">1min 48sec
6bd0: 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74  </td>..</tr>..<t
6be0: 72 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22  r>...<td align="
6bf0: 63 65 6e 74 65 72 22 3e 3c 62 3e 44 45 46 4c 41  center"><b>DEFLA
6c00: 54 45 3c 2f 62 3e 20 3c 69 3e 7a 69 70 20 63 6f  TE</b> <i>zip co
6c10: 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74  mpression</i></t
6c20: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67  d><td align="rig
6c30: 68 74 22 3e 31 2e 30 32 20 47 42 3c 2f 74 64 3e  ht">1.02 GB</td>
6c40: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65  <td align="cente
6c50: 72 22 3e 31 2e 39 37 3c 2f 74 64 3e 3c 74 64 20  r">1.97</td><td 
6c60: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 35 6d  align="right">5m
6c70: 69 6e 20 35 73 65 63 3c 2f 74 64 3e 3c 74 64 20  in 5sec</td><td 
6c80: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d  align="right">1m
6c90: 69 6e 20 34 32 73 65 63 3c 2f 74 64 3e 0d 0a 3c  in 42sec</td>..<
6ca0: 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63 6f 6c 6f  /tr>..<tr bgcolo
6cb0: 72 3d 22 23 64 66 64 64 63 30 22 3e 0d 0a 09 3c  r="#dfddc0">...<
6cc0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72  td align="center
6cd0: 22 3e 3c 62 3e 5a 53 54 44 3c 2f 62 3e 20 3c 69  "><b>ZSTD</b> <i
6ce0: 3e 66 61 73 74 20 63 6f 6d 70 72 65 73 73 69 6f  >fast compressio
6cf0: 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c  n</i></td><td al
6d00: 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 2e 30 37  ign="right">1.07
6d10: 20 47 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67   GB</td><td alig
6d20: 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e 38 37 3c  n="center">1.87<
6d30: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72  /td><td align="r
6d40: 69 67 68 74 22 3e 33 6d 69 6e 20 33 35 73 65 63  ight">3min 35sec
6d50: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22  </td><td align="
6d60: 72 69 67 68 74 22 3e 31 6d 69 6e 20 34 36 73 65  right">1min 46se
6d70: 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c  c</td>..</tr>..<
6d80: 74 72 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d  tr>...<td align=
6d90: 22 63 65 6e 74 65 72 22 3e 3c 62 3e 4c 5a 4d 41  "center"><b>LZMA
6da0: 3c 2f 62 3e 20 3c 69 3e 37 2d 7a 69 70 20 63 6f  </b> <i>7-zip co
6db0: 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74  mpression</i></t
6dc0: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67  d><td align="rig
6dd0: 68 74 22 3e 38 38 32 20 4d 42 3c 2f 74 64 3e 3c  ht">882 MB</td><
6de0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72  td align="center
6df0: 22 3e 32 2e 33 34 3c 2f 74 64 3e 3c 74 64 20 61  ">2.34</td><td a
6e00: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 31 6d  lign="right">11m
6e10: 69 6e 20 37 73 65 63 3c 2f 74 64 3e 3c 74 64 20  in 7sec</td><td 
6e20: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 32 6d  align="right">2m
6e30: 69 6e 20 31 35 73 65 63 3c 2f 74 64 3e 0d 0a 3c  in 15sec</td>..<
6e40: 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63 6f 6c 6f  /tr>..<tr bgcolo
6e50: 72 3d 22 23 64 66 64 64 63 30 22 3e 0d 0a 09 3c  r="#dfddc0">...<
6e60: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72  td align="center
6e70: 22 3e 3c 62 3e 50 4e 47 3c 2f 62 3e 20 3c 69 3e  "><b>PNG</b> <i>
6e80: 6c 6f 73 73 6c 65 73 73 20 69 6d 61 67 65 20 66  lossless image f
6e90: 6f 72 6d 61 74 3c 2f 69 3e 3c 2f 74 64 3e 3c 74  ormat</i></td><t
6ea0: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e  d align="right">
6eb0: 31 2e 30 38 20 47 42 3c 2f 74 64 3e 3c 74 64 20  1.08 GB</td><td 
6ec0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 31  align="center">1
6ed0: 2e 38 35 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67  .85</td><td alig
6ee0: 6e 3d 22 72 69 67 68 74 22 3e 34 6d 69 6e 20 34  n="right">4min 4
6ef0: 33 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69  3sec</td><td ali
6f00: 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69 6e 20  gn="right">1min 
6f10: 34 37 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72  47sec</td>..</tr
6f20: 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20 61 6c  >..<tr>...<td al
6f30: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e  ign="center"><b>
6f40: 4c 4c 5f 57 45 42 50 3c 2f 62 3e 20 3c 69 3e 6c  LL_WEBP</b> <i>l
6f50: 6f 73 73 6c 65 73 73 20 57 45 62 50 3c 2f 69 3e  ossless WEbP</i>
6f60: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22  </td><td align="
6f70: 72 69 67 68 74 22 3e 37 35 38 20 4d 42 3c 2f 74  right">758 MB</t
6f80: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e  d><td align="cen
6f90: 74 65 72 22 3e 32 2e 37 32 3c 2f 74 64 3e 3c 74  ter">2.72</td><t
6fa0: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e  d align="right">
6fb0: 39 6d 69 6e 20 33 36 73 65 63 3c 2f 74 64 3e 3c  9min 36sec</td><
6fc0: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22  td align="right"
6fd0: 3e 31 6d 69 6e 20 35 31 73 65 63 3c 2f 74 64 3e  >1min 51sec</td>
6fe0: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63  ..</tr>..<tr bgc
6ff0: 6f 6c 6f 72 3d 22 23 64 66 64 64 63 30 22 3e 0d  olor="#dfddc0">.
7000: 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e  ..<td align="cen
7010: 74 65 72 22 3e 3c 62 3e 4c 4c 5f 4a 50 32 3c 2f  ter"><b>LL_JP2</
7020: 62 3e 20 3c 69 3e 6c 6f 73 73 6c 65 73 73 20 4a  b> <i>lossless J
7030: 70 65 67 32 30 30 30 3c 2f 69 3e 3c 2f 74 64 3e  peg2000</i></td>
7040: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74  <td align="right
7050: 22 3e 31 2e 30 35 20 47 42 3c 2f 74 64 3e 3c 74  ">1.05 GB</td><t
7060: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22  d align="center"
7070: 3e 31 2e 39 32 3c 2f 74 64 3e 3c 74 64 20 61 6c  >1.92</td><td al
7080: 69 67 6e 3d 22 72 69 67 68 74 22 3e 31 36 6d 69  ign="right">16mi
7090: 6e 20 32 33 73 65 63 3c 2f 74 64 3e 3c 74 64 20  n 23sec</td><td 
70a0: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 33 6d  align="right">3m
70b0: 69 6e 20 35 33 73 65 63 3c 2f 74 64 3e 0d 0a 3c  in 53sec</td>..<
70c0: 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a  /tr>..</table>..
70d0: 3c 62 3e 51 75 69 63 6b 20 61 73 73 65 73 73 6d  <b>Quick assessm
70e0: 65 6e 74 3a 3c 2f 62 3e 0d 0a 3c 75 6c 3e 0d 0a  ent:</b>..<ul>..
70f0: 3c 6c 69 3e 74 68 69 73 20 74 65 73 74 20 77 61  <li>this test wa
7100: 73 20 62 61 73 65 64 20 6f 6e 20 61 20 73 61 6d  s based on a sam
7110: 70 6c 65 20 6f 66 20 39 20 34 2d 62 61 6e 64 73  ple of 9 4-bands
7120: 20 28 52 47 42 2b 4e 65 61 72 49 6e 66 72 61 72   (RGB+NearInfrar
7130: 65 64 29 20 54 49 46 46 2b 54 46 57 20 53 65 63  ed) TIFF+TFW Sec
7140: 74 69 6f 6e 73 20 28 66 6f 72 6d 69 6e 67 20 61  tions (forming a
7150: 20 33 78 33 20 73 71 75 61 72 65 29 20 63 65 6e   3x3 square) cen
7160: 74 65 72 65 64 20 61 72 6f 75 6e 64 20 74 68 65  tered around the
7170: 20 74 6f 77 6e 20 6f 66 20 53 61 6e 20 47 69 6f   town of San Gio
7180: 76 61 6e 6e 69 20 56 61 6c 64 61 72 6e 6f 2e 3c  vanni Valdarno.<
7190: 62 72 3e 0d 0a 54 68 65 20 6f 72 69 67 69 6e 61  br>..The origina
71a0: 6c 20 64 61 74 61 73 65 74 20 69 73 20 74 68 65  l dataset is the
71b0: 20 4f 72 74 6f 70 68 6f 74 6f 20 69 6d 61 67 65   Ortophoto image
71c0: 72 79 20 28 79 65 61 72 20 32 30 31 33 3b 20 73  ry (year 2013; s
71d0: 63 61 6c 65 20 31 3a 32 30 30 30 29 20 70 75 62  cale 1:2000) pub
71e0: 6c 69 73 68 65 64 20 62 79 20 3c 61 20 68 72 65  lished by <a hre
71f0: 66 3d 22 68 74 74 70 3a 2f 2f 77 77 77 35 30 32  f="http://www502
7200: 2e 72 65 67 69 6f 6e 65 2e 74 6f 73 63 61 6e 61  .regione.toscana
7210: 2e 69 74 2f 67 65 6f 73 63 6f 70 69 6f 2f 63 61  .it/geoscopio/ca
7220: 72 74 6f 74 65 63 61 2e 68 74 6d 6c 22 3e 54 75  rtoteca.html">Tu
7230: 73 63 61 6e 79 3c 2f 61 3e 3c 2f 6c 69 3e 0d 0a  scany</a></li>..
7240: 3c 6c 69 3e 74 68 69 73 20 74 65 73 74 20 73 69  <li>this test si
7250: 6d 70 6c 79 20 63 6f 6e 66 69 72 6d 73 20 74 68  mply confirms th
7260: 65 20 67 65 6e 65 72 61 6c 20 70 61 74 74 65 72  e general patter
7270: 6e 20 77 65 27 76 65 20 61 6c 72 65 61 64 79 20  n we've already 
7280: 73 65 65 6e 20 61 62 6f 75 74 20 47 72 61 79 73  seen about Grays
7290: 63 61 6c 65 20 61 6e 64 20 52 47 42 2e 3c 2f 6c  cale and RGB.</l
72a0: 69 3e 0d 0a 3c 6c 69 3e 69 6e 20 74 68 69 73 20  i>..<li>in this 
72b0: 63 61 73 65 20 74 6f 6f 20 4c 4c 5f 57 45 42 50  case too LL_WEBP
72c0: 20 73 63 6f 72 65 73 20 74 68 65 20 62 65 73 74   scores the best
72d0: 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74   compression rat
72e0: 69 6f 20 6f 66 20 74 68 65 6d 20 61 6c 6c 2c 20  io of them all, 
72f0: 61 6e 64 20 6d 61 72 6b 73 20 61 20 66 61 69 72  and marks a fair
7300: 6c 79 20 67 6f 6f 64 20 64 65 63 6f 6d 70 72 65  ly good decompre
7310: 73 73 69 6f 6e 20 74 69 6d 65 2e 3c 2f 6c 69 3e  ssion time.</li>
7320: 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 62 72 3e 0d 0a 3c  ..</ul>..<br>..<
7330: 62 72 3e 0d 0a 3c 68 33 3e 54 65 73 74 20 23 38  br>..<h3>Test #8
7340: 20 2d 20 44 61 74 61 67 72 69 64 20 52 61 73 74   - Datagrid Rast
7350: 65 72 20 43 6f 76 65 72 61 67 65 20 28 41 53 43  er Coverage (ASC
7360: 49 49 20 47 72 69 64 20 2d 20 66 6c 6f 61 74 69  II Grid - floati
7370: 6e 67 20 70 6f 69 6e 74 20 73 69 6e 67 6c 65 20  ng point single 
7380: 70 72 65 63 69 73 69 6f 6e 29 3c 2f 68 33 3e 0d  precision)</h3>.
7390: 0a 3c 74 61 62 6c 65 20 63 65 6c 6c 73 70 61 63  .<table cellspac
73a0: 69 6e 67 3d 22 36 22 20 63 65 6c 6c 70 61 64 64  ing="6" cellpadd
73b0: 69 6e 67 3d 22 38 22 20 62 6f 72 64 65 72 3d 22  ing="8" border="
73c0: 31 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66 66  1" bgcolor="#fff
73d0: 66 65 30 22 3e 0d 0a 3c 74 72 3e 3c 74 68 20 62  fe0">..<tr><th b
73e0: 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22  gcolor="#d0ff90"
73f0: 3e 43 6f 6d 70 72 65 73 73 69 6f 6e 20 4d 65 74  >Compression Met
7400: 68 6f 64 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f  hod</th><th bgco
7410: 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 44 42  lor="#d0ff90">DB
7420: 20 53 69 7a 65 3c 2f 74 68 3e 3c 74 68 20 62 67   Size</th><th bg
7430: 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e  color="#d0ff90">
7440: 43 6f 6d 70 72 65 73 73 69 6f 6e 20 52 61 74 69  Compression Rati
7450: 6f 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f  o</th><th bgcolo
7460: 72 3d 22 23 64 30 66 66 39 30 22 3e 43 6f 6d 70  r="#d0ff90">Comp
7470: 72 65 73 73 69 6f 6e 20 54 69 6d 65 3c 2f 74 68  ression Time</th
7480: 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64  ><th bgcolor="#d
7490: 30 66 66 39 30 22 3e 44 65 63 6f 6d 70 72 65 73  0ff90">Decompres
74a0: 73 69 6f 6e 20 54 69 6d 65 3c 2f 74 68 3e 3c 2f  sion Time</th></
74b0: 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20  tr>..<tr>...<td 
74c0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c  align="center"><
74d0: 62 3e 4e 4f 4e 45 3c 2f 62 3e 20 3c 69 3e 6e 6f  b>NONE</b> <i>no
74e0: 20 63 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e   compression</i>
74f0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22  </td><td align="
7500: 72 69 67 68 74 22 3e 32 2e 30 31 20 47 42 3c 2f  right">2.01 GB</
7510: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65  td><td align="ce
7520: 6e 74 65 72 22 3e 31 2e 30 30 3c 2f 74 64 3e 3c  nter">1.00</td><
7530: 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22  td align="right"
7540: 3e 36 6d 69 6e 20 33 30 73 65 63 3c 2f 74 64 3e  >6min 30sec</td>
7550: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74  <td align="right
7560: 22 3e 32 6d 69 6e 20 36 73 65 63 3c 2f 74 64 3e  ">2min 6sec</td>
7570: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 62 67 63  ..</tr>..<tr bgc
7580: 6f 6c 6f 72 3d 22 23 64 66 64 64 63 30 22 3e 0d  olor="#dfddc0">.
7590: 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e  ..<td align="cen
75a0: 74 65 72 22 3e 3c 62 3e 4c 5a 34 3c 2f 62 3e 20  ter"><b>LZ4</b> 
75b0: 3c 69 3e 76 65 72 79 20 66 61 73 74 20 63 6f 6d  <i>very fast com
75c0: 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 64  pression</i></td
75d0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68  ><td align="righ
75e0: 74 22 3e 38 34 35 20 4d 42 3c 2f 74 64 3e 3c 74  t">845 MB</td><t
75f0: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22  d align="center"
7600: 3e 32 2e 34 35 3c 2f 74 64 3e 3c 74 64 20 61 6c  >2.45</td><td al
7610: 69 67 6e 3d 22 72 69 67 68 74 22 3e 36 6d 69 6e  ign="right">6min
7620: 20 33 36 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61   36sec</td><td a
7630: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 32 6d 69  lign="right">2mi
7640: 6e 20 39 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74  n 9sec</td>..</t
7650: 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20 61  r>..<tr>...<td a
7660: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62  lign="center"><b
7670: 3e 44 45 46 4c 41 54 45 3c 2f 62 3e 20 3c 69 3e  >DEFLATE</b> <i>
7680: 7a 69 70 20 63 6f 6d 70 72 65 73 73 69 6f 6e 3c  zip compression<
7690: 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67  /i></td><td alig
76a0: 6e 3d 22 72 69 67 68 74 22 3e 36 32 33 20 4d 42  n="right">623 MB
76b0: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22  </td><td align="
76c0: 63 65 6e 74 65 72 22 3e 33 2e 33 32 3c 2f 74 64  center">3.32</td
76d0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68  ><td align="righ
76e0: 74 22 3e 37 6d 69 6e 20 32 73 65 63 3c 2f 74 64  t">7min 2sec</td
76f0: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68  ><td align="righ
7700: 74 22 3e 32 6d 69 6e 20 36 73 65 63 3c 2f 74 64  t">2min 6sec</td
7710: 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 20 62 67  >..</tr>..<tr bg
7720: 63 6f 6c 6f 72 3d 22 23 64 66 64 64 63 30 22 3e  color="#dfddc0">
7730: 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65  ...<td align="ce
7740: 6e 74 65 72 22 3e 3c 62 3e 5a 53 54 44 3c 2f 62  nter"><b>ZSTD</b
7750: 3e 20 3c 69 3e 66 61 73 74 20 63 6f 6d 70 72 65  > <i>fast compre
7760: 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74  ssion</i></td><t
7770: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e  d align="right">
7780: 36 31 34 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61  614 MB</td><td a
7790: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 33 2e  lign="center">3.
77a0: 33 36 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e  36</td><td align
77b0: 3d 22 72 69 67 68 74 22 3e 36 6d 69 6e 20 32 36  ="right">6min 26
77c0: 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67  sec</td><td alig
77d0: 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69 6e 20 35  n="right">1min 5
77e0: 35 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e  5sec</td>..</tr>
77f0: 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20 61 6c 69  ..<tr>...<td ali
7800: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 4c  gn="center"><b>L
7810: 5a 4d 41 3c 2f 62 3e 20 3c 69 3e 37 2d 7a 69 70  ZMA</b> <i>7-zip
7820: 20 63 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e   compression</i>
7830: 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22  </td><td align="
7840: 72 69 67 68 74 22 3e 35 31 33 20 4d 42 3c 2f 74  right">513 MB</t
7850: 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e  d><td align="cen
7860: 74 65 72 22 3e 34 2e 30 33 3c 2f 74 64 3e 3c 74  ter">4.03</td><t
7870: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e  d align="right">
7880: 31 31 6d 69 6e 20 32 30 73 65 63 3c 2f 74 64 3e  11min 20sec</td>
7890: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74  <td align="right
78a0: 22 3e 33 6d 69 6e 20 35 73 65 63 3c 2f 74 64 3e  ">3min 5sec</td>
78b0: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65  ..</tr>..</table
78c0: 3e 0d 0a 3c 62 3e 51 75 69 63 6b 20 61 73 73 65  >..<b>Quick asse
78d0: 73 73 6d 65 6e 74 3a 3c 2f 62 3e 0d 0a 3c 75 6c  ssment:</b>..<ul
78e0: 3e 0d 0a 3c 6c 69 3e 74 68 69 73 20 74 65 73 74  >..<li>this test
78f0: 20 77 61 73 20 62 61 73 65 64 20 6f 6e 20 61 20   was based on a 
7900: 68 75 67 65 20 41 53 43 49 49 20 47 72 69 64 20  huge ASCII Grid 
7910: 28 44 54 4d 2c 20 31 30 6d 20 78 20 31 30 6d 20  (DTM, 10m x 10m 
7920: 63 65 6c 6c 20 73 69 7a 65 29 2e 3c 62 72 3e 0d  cell size).<br>.
7930: 0a 54 68 65 20 6f 72 69 67 69 6e 61 6c 20 64 61  .The original da
7940: 74 61 73 65 74 20 69 73 20 74 68 65 20 4f 72 6f  taset is the Oro
7950: 67 72 61 70 68 69 63 20 44 54 4d 20 31 30 78 31  graphic DTM 10x1
7960: 30 20 70 75 62 6c 69 73 68 65 64 20 62 79 20 3c  0 published by <
7970: 61 20 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 77  a href="http://w
7980: 77 77 35 30 32 2e 72 65 67 69 6f 6e 65 2e 74 6f  ww502.regione.to
7990: 73 63 61 6e 61 2e 69 74 2f 67 65 6f 73 63 6f 70  scana.it/geoscop
79a0: 69 6f 2f 63 61 72 74 6f 74 65 63 61 2e 68 74 6d  io/cartoteca.htm
79b0: 6c 22 3e 54 75 73 63 61 6e 79 3c 2f 61 3e 3c 2f  l">Tuscany</a></
79c0: 6c 69 3e 0d 0a 3c 6c 69 3e 74 68 69 73 20 73 70  li>..<li>this sp
79d0: 65 63 69 66 69 63 20 74 65 73 74 20 65 76 69 64  ecific test evid
79e0: 65 6e 74 69 61 74 65 73 20 61 20 73 6c 69 67 68  entiates a sligh
79f0: 74 20 73 75 70 65 72 69 6f 72 69 74 79 20 6f 66  t superiority of
7a00: 20 5a 53 54 44 20 61 62 6f 76 65 20 44 45 46 4c   ZSTD above DEFL
7a10: 41 54 45 3b 20 69 74 27 73 20 61 62 6c 65 20 74  ATE; it's able t
7a20: 6f 20 73 63 6f 72 65 20 61 20 62 65 74 74 65 72  o score a better
7a30: 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74   compression rat
7a40: 69 6f 20 61 6e 64 20 69 74 27 73 20 66 61 73 74  io and it's fast
7a50: 65 72 20 62 6f 74 68 20 77 68 65 6e 20 63 6f 6d  er both when com
7a60: 70 72 65 73 73 69 6e 67 20 61 6e 64 20 64 65 63  pressing and dec
7a70: 6f 6d 70 72 65 73 73 69 6e 67 2e 3c 2f 6c 69 3e  ompressing.</li>
7a80: 0d 0a 3c 6c 69 3e 4c 5a 34 20 63 6f 6e 66 69 72  ..<li>LZ4 confir
7a90: 6d 73 20 74 6f 20 62 65 20 66 61 73 74 20 62 75  ms to be fast bu
7aa0: 74 20 75 6e 61 62 6c 65 20 74 6f 20 73 63 6f 72  t unable to scor
7ab0: 65 20 61 20 67 6f 6f 64 20 63 6f 6d 70 72 65 73  e a good compres
7ac0: 73 69 6f 6e 20 72 61 74 69 6f 2e 3c 2f 6c 69 3e  sion ratio.</li>
7ad0: 0d 0a 3c 6c 69 3e 4c 5a 4d 41 20 63 6f 6e 66 69  ..<li>LZMA confi
7ae0: 72 6d 73 20 74 6f 20 73 63 6f 72 65 20 69 6d 70  rms to score imp
7af0: 72 65 73 73 69 76 65 20 63 6f 6d 70 72 65 73 73  ressive compress
7b00: 69 6f 6e 20 72 61 74 69 6f 73 20 62 75 74 20 61  ion ratios but a
7b10: 74 20 74 68 65 20 63 6f 73 74 20 6f 66 20 61 20  t the cost of a 
7b20: 62 61 72 65 6c 79 20 74 6f 6c 65 72 61 62 6c 65  barely tolerable
7b30: 20 73 6c 6f 77 6e 65 73 73 2e 3c 2f 6c 69 3e 0d   slowness.</li>.
7b40: 0a 3c 2f 75 6c 3e 0d 0a 3c 62 72 3e 0d 0a 3c 62  .</ul>..<br>..<b
7b50: 72 3e 0d 0a 3c 68 33 3e 54 65 73 74 20 23 39 20  r>..<h3>Test #9 
7b60: 2d 20 44 61 74 61 67 72 69 64 20 52 61 73 74 65  - Datagrid Raste
7b70: 72 20 43 6f 76 65 72 61 67 65 20 28 54 49 46 46  r Coverage (TIFF
7b80: 20 2d 20 49 4e 54 31 36 29 3c 2f 68 33 3e 0d 0a   - INT16)</h3>..
7b90: 3c 74 61 62 6c 65 20 63 65 6c 6c 73 70 61 63 69  <table cellspaci
7ba0: 6e 67 3d 22 36 22 20 63 65 6c 6c 70 61 64 64 69  ng="6" cellpaddi
7bb0: 6e 67 3d 22 38 22 20 62 6f 72 64 65 72 3d 22 31  ng="8" border="1
7bc0: 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66 66 66  " bgcolor="#ffff
7bd0: 65 30 22 3e 0d 0a 3c 74 72 3e 3c 74 68 20 62 67  e0">..<tr><th bg
7be0: 63 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e  color="#d0ff90">
7bf0: 43 6f 6d 70 72 65 73 73 69 6f 6e 20 4d 65 74 68  Compression Meth
7c00: 6f 64 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c  od</th><th bgcol
7c10: 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 44 42 20  or="#d0ff90">DB 
7c20: 53 69 7a 65 3c 2f 74 68 3e 3c 74 68 20 62 67 63  Size</th><th bgc
7c30: 6f 6c 6f 72 3d 22 23 64 30 66 66 39 30 22 3e 43  olor="#d0ff90">C
7c40: 6f 6d 70 72 65 73 73 69 6f 6e 20 52 61 74 69 6f  ompression Ratio
7c50: 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f 72  </th><th bgcolor
7c60: 3d 22 23 64 30 66 66 39 30 22 3e 43 6f 6d 70 72  ="#d0ff90">Compr
7c70: 65 73 73 69 6f 6e 20 54 69 6d 65 3c 2f 74 68 3e  ession Time</th>
7c80: 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30  <th bgcolor="#d0
7c90: 66 66 39 30 22 3e 44 65 63 6f 6d 70 72 65 73 73  ff90">Decompress
7ca0: 69 6f 6e 20 54 69 6d 65 3c 2f 74 68 3e 3c 2f 74  ion Time</th></t
7cb0: 72 3e 0d 0a 3c 74 72 3e 0d 0a 09 3c 74 64 20 61  r>..<tr>...<td a
7cc0: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 62  lign="center"><b
7cd0: 3e 4e 4f 4e 45 3c 2f 62 3e 20 3c 69 3e 6e 6f 20  >NONE</b> <i>no 
7ce0: 63 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c  compression</i><
7cf0: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72  /td><td align="r
7d00: 69 67 68 74 22 3e 34 38 30 20 4d 42 3c 2f 74 64  ight">480 MB</td
7d10: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74  ><td align="cent
7d20: 65 72 22 3e 31 2e 30 30 3c 2f 74 64 3e 3c 74 64  er">1.00</td><td
7d30: 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 31   align="right">1
7d40: 37 73 65 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69  7sec</td><td ali
7d50: 67 6e 3d 22 72 69 67 68 74 22 3e 31 6d 69 6e 20  gn="right">1min 
7d60: 33 39 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72  39sec</td>..</tr
7d70: 3e 0d 0a 3c 74 72 20 62 67 63 6f 6c 6f 72 3d 22  >..<tr bgcolor="
7d80: 23 64 66 64 64 63 30 22 3e 0d 0a 09 3c 74 64 20  #dfddc0">...<td 
7d90: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c  align="center"><
7da0: 62 3e 4c 5a 34 3c 2f 62 3e 20 3c 69 3e 76 65 72  b>LZ4</b> <i>ver
7db0: 79 20 66 61 73 74 20 63 6f 6d 70 72 65 73 73 69  y fast compressi
7dc0: 6f 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74 64 20 61  on</i></td><td a
7dd0: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 33 31 37  lign="right">317
7de0: 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67   MB</td><td alig
7df0: 6e 3d 22 63 65 6e 74 65 72 22 3e 31 2e 35 31 3c  n="center">1.51<
7e00: 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72  /td><td align="r
7e10: 69 67 68 74 22 3e 32 31 73 65 63 3c 2f 74 64 3e  ight">21sec</td>
7e20: 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74  <td align="right
7e30: 22 3e 31 6d 69 6e 20 34 38 73 65 63 3c 2f 74 64  ">1min 48sec</td
7e40: 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a  >..</tr>..<tr>..
7e50: 09 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74  .<td align="cent
7e60: 65 72 22 3e 3c 62 3e 44 45 46 4c 41 54 45 3c 2f  er"><b>DEFLATE</
7e70: 62 3e 20 3c 69 3e 7a 69 70 20 63 6f 6d 70 72 65  b> <i>zip compre
7e80: 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 64 3e 3c 74  ssion</i></td><t
7e90: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e  d align="right">
7ea0: 32 30 35 20 4d 42 3c 2f 74 64 3e 3c 74 64 20 61  205 MB</td><td a
7eb0: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 32 2e  lign="center">2.
7ec0: 33 34 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e  34</td><td align
7ed0: 3d 22 72 69 67 68 74 22 3e 32 38 73 65 63 3c 2f  ="right">28sec</
7ee0: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69  td><td align="ri
7ef0: 67 68 74 22 3e 31 6d 69 6e 20 33 39 73 65 63 3c  ght">1min 39sec<
7f00: 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72  /td>..</tr>..<tr
7f10: 20 62 67 63 6f 6c 6f 72 3d 22 23 64 66 64 64 63   bgcolor="#dfddc
7f20: 30 22 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e 3d  0">...<td align=
7f30: 22 63 65 6e 74 65 72 22 3e 3c 62 3e 5a 53 54 44  "center"><b>ZSTD
7f40: 3c 2f 62 3e 20 3c 69 3e 66 61 73 74 20 63 6f 6d  </b> <i>fast com
7f50: 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 74 64  pression</i></td
7f60: 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69 67 68  ><td align="righ
7f70: 74 22 3e 32 30 37 20 4d 42 3c 2f 74 64 3e 3c 74  t">207 MB</td><t
7f80: 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22  d align="center"
7f90: 3e 32 2e 33 32 3c 2f 74 64 3e 3c 74 64 20 61 6c  >2.32</td><td al
7fa0: 69 67 6e 3d 22 72 69 67 68 74 22 3e 32 30 73 65  ign="right">20se
7fb0: 63 3c 2f 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d  c</td><td align=
7fc0: 22 72 69 67 68 74 22 3e 31 6d 69 6e 20 34 32 73  "right">1min 42s
7fd0: 65 63 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a  ec</td>..</tr>..
7fe0: 3c 74 72 3e 0d 0a 09 3c 74 64 20 61 6c 69 67 6e  <tr>...<td align
7ff0: 3d 22 63 65 6e 74 65 72 22 3e 3c 62 3e 4c 5a 4d  ="center"><b>LZM
8000: 41 3c 2f 62 3e 20 3c 69 3e 37 2d 7a 69 70 20 63  A</b> <i>7-zip c
8010: 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f  ompression</i></
8020: 74 64 3e 3c 74 64 20 61 6c 69 67 6e 3d 22 72 69  td><td align="ri
8030: 67 68 74 22 3e 31 36 38 20 4d 42 3c 2f 74 64 3e  ght">168 MB</td>
8040: 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65  <td align="cente
8050: 72 22 3e 32 2e 38 36 3c 2f 74 64 3e 3c 74 64 20  r">2.86</td><td 
8060: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 32 6d  align="right">2m
8070: 69 6e 20 30 73 65 63 3c 2f 74 64 3e 3c 74 64 20  in 0sec</td><td 
8080: 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 32 6d  align="right">2m
8090: 69 6e 20 33 73 65 63 3c 2f 74 64 3e 0d 0a 3c 2f  in 3sec</td>..</
80a0: 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a 3c  tr>..</table>..<
80b0: 62 3e 51 75 69 63 6b 20 61 73 73 65 73 73 6d 65  b>Quick assessme
80c0: 6e 74 3a 3c 2f 62 3e 0d 0a 3c 75 6c 3e 0d 0a 3c  nt:</b>..<ul>..<
80d0: 6c 69 3e 74 68 69 73 20 74 65 73 74 20 77 61 73  li>this test was
80e0: 20 62 61 73 65 64 20 6f 6e 20 74 68 65 20 76 65   based on the ve
80f0: 72 79 20 70 6f 70 75 6c 61 72 20 45 54 4f 50 4f  ry popular ETOPO
8100: 31 20 67 6c 6f 62 61 6c 20 72 65 6c 69 65 66 20  1 global relief 
8110: 6d 6f 64 65 6c 20 6f 66 20 45 61 72 74 68 27 73  model of Earth's
8120: 20 73 75 72 66 61 63 65 20 70 75 62 6c 69 73 68   surface publish
8130: 65 64 20 62 79 20 3c 61 20 68 72 65 66 3d 22 68  ed by <a href="h
8140: 74 74 70 73 3a 2f 2f 77 77 77 2e 6e 67 64 63 2e  ttps://www.ngdc.
8150: 6e 6f 61 61 2e 67 6f 76 2f 6d 67 67 2f 67 6c 6f  noaa.gov/mgg/glo
8160: 62 61 6c 2f 67 6c 6f 62 61 6c 2e 68 74 6d 6c 22  bal/global.html"
8170: 3e 4e 4f 41 41 3c 2f 61 3e 3c 2f 6c 69 3e 0d 0a  >NOAA</a></li>..
8180: 3c 6c 69 3e 74 68 69 73 20 73 70 65 63 69 66 69  <li>this specifi
8190: 63 20 74 65 73 74 20 66 61 69 6c 73 20 74 6f 20  c test fails to 
81a0: 65 76 69 64 65 6e 74 69 61 74 65 73 20 61 6e 79  evidentiates any
81b0: 20 73 75 70 65 72 69 6f 72 69 74 79 20 6f 66 20   superiority of 
81c0: 5a 53 54 44 20 61 62 6f 76 65 20 44 45 46 4c 41  ZSTD above DEFLA
81d0: 54 45 3b 20 74 68 65 79 20 61 72 65 20 73 75 62  TE; they are sub
81e0: 73 74 61 6e 74 69 61 6c 6c 79 20 6f 6e 20 70 61  stantially on pa
81f0: 72 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 4c 5a 34  r.</li>..<li>LZ4
8200: 20 63 6f 6e 66 69 72 6d 73 20 74 6f 20 62 65 20   confirms to be 
8210: 66 61 73 74 20 62 75 74 20 75 6e 61 62 6c 65 20  fast but unable 
8220: 74 6f 20 73 63 6f 72 65 20 61 20 67 6f 6f 64 20  to score a good 
8230: 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69  compression rati
8240: 6f 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 4c 5a 4d  o.</li>..<li>LZM
8250: 41 20 63 6f 6e 66 69 72 6d 73 20 74 6f 20 73 63  A confirms to sc
8260: 6f 72 65 20 69 6d 70 72 65 73 73 69 76 65 20 63  ore impressive c
8270: 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69 6f  ompression ratio
8280: 73 20 62 75 74 20 61 74 20 74 68 65 20 63 6f 73  s but at the cos
8290: 74 20 6f 66 20 61 20 62 61 72 65 6c 79 20 74 6f  t of a barely to
82a0: 6c 65 72 61 62 6c 65 20 73 6c 6f 77 6e 65 73 73  lerable slowness
82b0: 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 3c  .</li>..</ul>..<
82c0: 62 72 3e 0d 0a 3c 68 72 3e 0d 0a 3c 68 31 3e 43  br>..<hr>..<h1>C
82d0: 6f 6e 63 6c 75 73 69 6f 6e 73 3c 2f 68 31 3e 0d  onclusions</h1>.
82e0: 0a 3c 6f 6c 3e 0d 0a 3c 6c 69 3e 47 65 6e 65 72  .<ol>..<li>Gener
82f0: 61 6c 20 70 75 72 70 6f 73 65 20 6c 6f 73 73 6c  al purpose lossl
8300: 65 73 73 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20  ess compression 
8310: 61 6c 67 6f 72 69 74 68 6d 73 20 63 61 6e 20 62  algorithms can b
8320: 65 20 73 75 63 63 65 73 66 75 6c 6c 79 20 64 65  e succesfully de
8330: 70 6c 6f 79 65 64 20 65 76 65 6e 20 69 6e 20 74  ployed even in t
8340: 68 65 20 63 61 73 65 20 6f 66 20 52 61 73 74 65  he case of Raste
8350: 72 20 43 6f 76 65 72 61 67 65 73 2e 3c 62 72 3e  r Coverages.<br>
8360: 0d 0a 54 68 65 79 20 61 72 65 20 6e 65 76 65 72  ..They are never
8370: 20 61 62 6c 65 20 74 6f 20 73 63 6f 72 65 20 69   able to score i
8380: 6d 70 72 65 73 73 69 76 65 20 63 6f 6d 70 72 65  mpressive compre
8390: 73 73 69 6f 6e 20 72 61 74 69 6f 73 20 28 6c 6f  ssion ratios (lo
83a0: 73 73 79 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20  ssy compression 
83b0: 61 72 65 20 72 65 71 75 69 72 65 64 20 66 6f 72  are required for
83c0: 20 74 68 69 73 29 2c 20 62 75 74 20 74 68 65 79   this), but they
83d0: 20 63 61 6e 20 65 66 66 65 63 74 69 76 65 6c 79   can effectively
83e0: 20 65 6e 73 75 72 65 20 61 20 76 61 6c 75 61 62   ensure a valuab
83f0: 6c 65 20 72 65 64 75 63 74 69 6f 6e 20 69 6e 20  le reduction in 
8400: 74 68 65 20 72 65 71 75 69 72 65 64 20 73 74 6f  the required sto
8410: 72 61 67 65 20 61 6d 6f 75 6e 74 20 77 69 74 68  rage amount with
8420: 6f 75 74 20 69 6d 70 6f 73 69 6e 67 20 61 6e 79  out imposing any
8430: 20 6c 6f 73 73 20 6f 66 20 69 6e 66 6f 72 6d 61   loss of informa
8440: 74 69 6f 6e 2e 3c 62 72 3e 0d 0a 41 6e 64 20 73  tion.<br>..And s
8450: 6f 6d 65 20 62 65 74 77 65 65 6e 20 74 68 65 6d  ome between them
8460: 20 61 72 65 20 66 61 73 74 20 65 6e 6f 75 67 68   are fast enough
8470: 20 74 6f 20 6e 6f 74 20 69 6d 70 6f 73 65 20 61   to not impose a
8480: 6e 79 20 75 6e 72 65 71 75 69 72 65 64 20 6f 76  ny unrequired ov
8490: 65 72 68 65 61 64 3a 0d 0a 3c 75 6c 3e 0d 0a 3c  erhead:..<ul>..<
84a0: 6c 69 3e 3c 62 3e 4c 5a 34 3c 2f 62 3e 20 64 6f  li><b>LZ4</b> do
84b0: 65 73 6e 27 74 20 73 65 65 6d 73 20 74 6f 20 62  esn't seems to b
84c0: 65 20 72 65 61 6c 6c 79 20 69 6e 74 72 65 73 74  e really intrest
84d0: 69 6e 67 20 66 6f 72 20 63 6f 6d 70 72 65 73 73  ing for compress
84e0: 69 6e 67 20 72 61 73 74 65 72 20 64 61 74 61 2e  ing raster data.
84f0: 3c 62 72 3e 0d 0a 59 65 73 2c 20 69 74 20 74 72  <br>..Yes, it tr
8500: 75 65 20 74 68 61 74 20 69 74 27 73 20 69 6d 70  ue that it's imp
8510: 72 65 73 73 69 76 65 6c 79 20 66 61 73 74 3b 20  ressively fast; 
8520: 62 75 74 20 74 68 65 20 63 6f 6d 70 72 65 73 73  but the compress
8530: 69 6f 6e 20 72 61 74 69 6f 73 20 61 72 65 20 61  ion ratios are a
8540: 6c 77 61 79 73 20 74 6f 6f 20 6d 75 63 68 20 62  lways too much b
8550: 6c 61 6e 64 20 74 6f 20 62 65 20 63 6f 6e 73 69  land to be consi
8560: 64 65 72 65 64 20 72 65 61 6c 6c 79 20 69 6e 74  dered really int
8570: 65 72 65 73 74 69 6e 67 2e 3c 62 72 3e 0d 0a 49  eresting.<br>..I
8580: 74 27 73 20 6b 69 6e 64 20 6f 66 20 61 20 72 65  t's kind of a re
8590: 61 73 65 61 72 63 68 2f 61 63 61 64 65 6d 69 63  asearch/academic
85a0: 20 74 6f 6f 6c 20 64 69 66 66 69 63 75 6c 74 20   tool difficult 
85b0: 74 6f 20 62 65 20 75 73 65 66 75 6c 6c 79 20 64  to be usefully d
85c0: 65 70 6c 6f 79 65 64 20 69 6e 20 70 72 6f 64 75  eployed in produ
85d0: 63 74 69 6f 6e 20 65 6e 76 69 72 6f 6e 6d 65 6e  ction environmen
85e0: 74 73 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62  ts.</li>..<li><b
85f0: 3e 44 45 46 4c 41 54 45 3c 2f 62 3e 20 61 6e 64  >DEFLATE</b> and
8600: 20 3c 62 3e 5a 53 54 44 3c 2f 62 3e 20 61 72 65   <b>ZSTD</b> are
8610: 20 61 6c 6d 6f 73 74 20 6f 6e 20 70 61 72 20 69   almost on par i
8620: 6e 20 74 68 65 20 73 70 65 63 69 66 69 63 20 64  n the specific d
8630: 6f 6d 61 69 6e 20 6f 66 20 72 61 73 74 65 72 20  omain of raster 
8640: 64 61 74 61 3b 20 62 6f 74 68 20 61 72 65 20 77  data; both are w
8650: 65 6c 6c 20 62 61 6c 61 6e 63 65 64 20 61 6e 64  ell balanced and
8660: 20 70 72 61 63 74 69 63 61 6c 6c 79 20 75 73 65   practically use
8670: 66 75 6c 6c 2e 3c 62 72 3e 0d 0a 3c 62 3e 5a 53  full.<br>..<b>ZS
8680: 54 44 3c 2f 62 3e 20 73 6f 6d 65 74 69 6d 65 73  TD</b> sometimes
8690: 20 73 68 6f 77 73 20 63 6c 65 61 72 6c 79 20 73   shows clearly s
86a0: 75 70 65 72 69 6f 72 20 73 70 65 65 64 73 20 61  uperior speeds a
86b0: 6e 64 2f 6f 72 20 63 6f 6d 70 72 65 73 73 69 6f  nd/or compressio
86c0: 6e 20 72 61 74 69 6f 73 2c 20 62 75 74 20 74 68  n ratios, but th
86d0: 69 73 20 64 65 70 65 6e 64 73 20 73 6f 20 6d 75  is depends so mu
86e0: 63 68 20 6f 6e 20 74 68 65 20 69 6e 74 72 69 6e  ch on the intrin
86f0: 73 69 63 20 6e 61 74 75 72 65 20 6f 66 20 74 68  sic nature of th
8700: 65 20 73 70 65 63 69 66 69 63 20 73 61 6d 70 6c  e specific sampl
8710: 65 20 74 6f 20 62 65 20 70 72 61 63 74 69 63 61  e to be practica
8720: 6c 6c 79 20 75 6e 70 72 65 64 69 63 74 61 62 6c  lly unpredictabl
8730: 65 2e 3c 62 72 3e 0d 0a 41 20 63 61 72 65 66 75  e.<br>..A carefu
8740: 6c 20 65 76 61 6c 75 61 74 69 6f 6e 20 62 79 20  l evaluation by 
8750: 70 72 61 63 74 69 63 61 6c 20 74 65 73 74 69 6e  practical testin
8760: 67 20 69 73 20 61 6c 77 61 79 73 20 72 65 71 75  g is always requ
8770: 69 72 65 64 20 63 61 73 65 20 62 79 65 20 63 61  ired case bye ca
8780: 73 65 2c 20 74 68 65 72 65 20 69 73 20 6e 6f 20  se, there is no 
8790: 72 65 61 6c 69 61 62 6c 65 20 67 65 6e 65 72 61  realiable genera
87a0: 6c 20 72 75 6c 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c  l rule.</li>..<l
87b0: 69 3e 3c 62 3e 4c 5a 4d 41 3c 2f 62 3e 20 69 73  i><b>LZMA</b> is
87c0: 20 75 6e 62 65 61 74 61 62 6c 65 20 66 6f 72 20   unbeatable for 
87d0: 69 74 73 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20  its compression 
87e0: 72 61 74 69 6f 73 2c 20 62 75 74 20 69 74 27 73  ratios, but it's
87f0: 20 73 6f 20 6d 75 63 68 20 73 6c 6f 77 20 77 68   so much slow wh
8800: 65 6e 20 64 65 63 6f 6d 70 72 65 73 73 69 6e 67  en decompressing
8810: 20 74 6f 20 64 69 73 63 75 72 61 67 65 20 69 74   to discurage it
8820: 73 20 61 64 6f 70 74 69 6f 6e 20 6f 6e 20 70 72  s adoption on pr
8830: 6f 64 75 63 74 69 6f 6e 20 65 6e 76 69 72 6f 6e  oduction environ
8840: 6d 65 6e 74 73 2e 3c 62 72 3e 0d 0a 49 74 73 20  ments.<br>..Its 
8850: 62 65 73 74 20 66 69 65 6c 64 20 6f 66 20 61 70  best field of ap
8860: 70 6c 69 63 61 74 69 6f 6e 20 70 72 6f 62 61 62  plication probab
8870: 6c 79 20 69 73 20 66 6f 72 20 6c 6f 6e 67 20 74  ly is for long t
8880: 65 72 6d 20 73 74 6f 72 61 67 65 20 6f 66 20 72  erm storage of r
8890: 65 61 6c 6c 79 20 68 75 67 65 20 72 61 73 74 65  eally huge raste
88a0: 72 20 63 6f 76 65 72 61 67 65 73 2c 20 77 68 65  r coverages, whe
88b0: 72 65 20 68 69 67 68 20 63 6f 6d 70 72 65 73 73  re high compress
88c0: 69 6f 6e 20 72 61 74 69 6f 73 20 63 61 6e 20 65  ion ratios can e
88d0: 61 73 69 6c 79 20 6f 76 65 72 63 6f 6d 65 20 61  asily overcome a
88e0: 6e 79 20 63 6f 6e 73 69 64 65 72 61 74 69 6f 6e  ny consideration
88f0: 20 61 62 6f 75 74 20 73 70 65 65 64 2e 3c 2f 75   about speed.</u
8900: 6c 3e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 4c 6f 73  l></li>..<li>Los
8910: 73 6c 65 73 73 20 63 6f 6d 70 72 65 73 73 69 6f  sless compressio
8920: 6e 20 61 6c 67 6f 72 69 74 68 6d 73 20 73 70 65  n algorithms spe
8930: 63 69 66 69 63 61 6c 6c 79 20 64 65 73 69 67 6e  cifically design
8940: 65 64 20 66 6f 72 20 72 61 73 74 65 72 20 69 6d  ed for raster im
8950: 61 67 65 73 20 61 72 65 20 76 65 72 79 20 64 65  ages are very de
8960: 6c 75 64 69 6e 67 2e 3c 62 72 3e 0d 0a 54 68 65  luding.<br>..The
8970: 79 20 61 72 65 20 74 6f 6f 20 6f 66 74 65 6e 20  y are too often 
8980: 75 6e 61 62 6c 65 20 74 6f 20 73 63 6f 72 65 20  unable to score 
8990: 62 65 74 74 65 72 20 63 6f 6d 70 72 65 73 73 69  better compressi
89a0: 6f 6e 20 72 61 74 69 6f 73 20 74 68 61 6e 20 67  on ratios than g
89b0: 65 6e 65 72 61 6c 20 70 75 72 70 6f 73 65 20 61  eneral purpose a
89c0: 6c 67 6f 72 69 74 68 6d 73 2c 20 61 6e 64 20 61  lgorithms, and a
89d0: 73 20 61 20 67 65 6e 65 72 61 6c 20 74 72 65 6e  s a general tren
89e0: 64 20 74 68 65 79 20 61 72 65 20 75 6e 61 63 63  d they are unacc
89f0: 65 70 72 61 62 6c 79 20 73 6c 6f 77 20 77 68 65  eprably slow whe
8a00: 6e 20 64 65 63 6f 6d 70 72 65 73 73 69 6e 67 2e  n decompressing.
8a10: 3c 62 72 3e 0d 0a 53 6f 6d 65 74 69 6d 65 73 20  <br>..Sometimes 
8a20: 62 65 69 6e 67 20 74 6f 6f 20 6d 75 63 68 20 73  being too much s
8a30: 6f 70 68 69 73 74 69 63 61 74 65 64 20 61 6e 64  ophisticated and
8a40: 20 63 6f 6d 70 6c 65 78 20 64 6f 65 73 6e 27 74   complex doesn't
8a50: 20 70 61 79 3a 20 61 6e 64 20 74 68 69 73 20 69   pay: and this i
8a60: 73 20 6f 6e 65 20 6f 66 20 74 68 69 73 20 63 61  s one of this ca
8a70: 73 65 73 2e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e  ses...<ul>..<li>
8a80: 3c 62 3e 50 4e 47 3c 2f 62 3e 20 63 6c 65 61 72  <b>PNG</b> clear
8a90: 6c 79 20 65 6d 65 72 67 65 73 20 61 73 20 74 68  ly emerges as th
8aa0: 65 20 62 65 73 74 20 6f 66 20 74 68 69 73 20 67  e best of this g
8ab0: 72 6f 75 70 2e 3c 62 72 3e 0d 0a 49 74 27 73 20  roup.<br>..It's 
8ac0: 61 20 72 65 61 6c 20 69 6d 61 67 65 20 66 6f 72  a real image for
8ad0: 6d 61 74 20 62 75 74 20 69 74 20 68 61 73 20 28  mat but it has (
8ae0: 6d 6f 72 65 20 6f 72 20 6c 65 73 73 29 20 74 68  more or less) th
8af0: 65 20 73 61 6d 65 20 63 6f 6d 70 72 65 73 73 69  e same compressi
8b00: 6f 6e 20 72 61 74 69 6f 73 20 61 6e 64 20 73 70  on ratios and sp
8b10: 65 65 64 73 20 61 73 20 44 45 46 4c 41 54 45 20  eeds as DEFLATE 
8b20: 6f 72 20 5a 53 54 44 2c 20 61 6e 64 20 74 68 69  or ZSTD, and thi
8b30: 73 20 69 73 6e 27 74 20 61 74 20 61 6c 6c 20 73  s isn't at all s
8b40: 75 72 70 72 69 73 69 6e 67 20 6f 6e 63 65 20 63  urprising once c
8b50: 6f 6e 73 69 64 65 72 65 64 20 74 68 61 74 20 50  onsidered that P
8b60: 4e 47 20 69 73 20 77 69 64 65 6c 79 20 62 61 73  NG is widely bas
8b70: 65 64 20 6f 6e 20 44 45 46 4c 41 54 45 2e 3c 2f  ed on DEFLATE.</
8b80: 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 57 65 62 50  li>..<li><b>WebP
8b90: 3c 2f 62 3e 20 28 69 6e 20 69 74 73 20 6c 6f 73  </b> (in its los
8ba0: 73 6c 65 73 73 20 6d 6f 64 65 29 20 69 73 20 6f  sless mode) is o
8bb0: 6e 6c 79 20 6d 61 72 67 69 6e 61 6c 6c 79 20 69  nly marginally i
8bc0: 6e 74 65 72 65 73 74 69 6e 67 2e 3c 62 72 3e 0d  nteresting.<br>.
8bd0: 0a 53 6f 6d 65 74 69 6e 65 73 20 28 62 75 74 20  .Sometines (but 
8be0: 6e 6f 74 20 61 6c 77 61 79 73 29 20 69 74 20 63  not always) it c
8bf0: 61 6e 20 73 63 6f 72 65 20 62 65 74 74 65 72 20  an score better 
8c00: 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61 74 69  compression rati
8c10: 6f 73 20 74 68 61 6e 20 44 45 46 4c 41 54 45 2c  os than DEFLATE,
8c20: 20 5a 53 54 44 20 61 6e 64 20 50 4e 47 20 77 69   ZSTD and PNG wi
8c30: 74 68 6f 75 74 20 69 6d 70 6f 73 69 6e 67 20 61  thout imposing a
8c40: 20 6e 6f 74 69 63 65 61 62 6c 65 20 73 6c 6f 77   noticeable slow
8c50: 6e 65 73 73 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e  ness.</li>..<li>
8c60: 3c 62 3e 43 68 61 72 4c 53 3c 2f 62 3e 20 28 61  <b>CharLS</b> (a
8c70: 6b 61 20 3c 69 3e 6c 6f 73 73 6c 65 73 73 20 4a  ka <i>lossless J
8c80: 50 45 47 3c 2f 69 3e 29 20 61 6e 64 20 3c 62 3e  PEG</i>) and <b>
8c90: 4a 70 65 67 32 30 30 30 3c 2f 62 3e 20 28 69 6e  Jpeg2000</b> (in
8ca0: 20 69 74 73 20 6c 6f 73 73 6c 65 73 73 20 6d 6f   its lossless mo
8cb0: 64 65 29 20 61 72 65 20 64 65 66 69 6e 69 74 65  de) are definite
8cc0: 6c 79 20 6e 6f 74 20 69 6e 74 65 72 65 73 74 69  ly not interesti
8cd0: 6e 67 20 61 74 20 61 6c 6c 2e 3c 62 72 3e 0d 0a  ng at all.<br>..
8ce0: 42 6f 74 68 20 74 68 65 6d 20 61 72 65 20 61 6c  Both them are al
8cf0: 77 61 79 73 20 75 6e 61 62 6c 65 20 74 6f 20 73  ways unable to s
8d00: 63 6f 72 65 20 72 65 61 6c 6c 79 20 69 6e 74 65  core really inte
8d10: 72 65 73 74 69 6e 67 20 63 6f 6d 70 72 65 73 73  resting compress
8d20: 69 6f 6e 20 72 61 74 69 6f 73 2c 20 61 6e 64 20  ion ratios, and 
8d30: 61 72 65 20 64 65 61 64 6c 79 20 73 6c 6f 77 20  are deadly slow 
8d40: 28 6d 6f 73 74 20 6e 6f 74 69 63 65 61 62 6c 79  (most noticeably
8d50: 20 4c 4c 5f 4a 50 32 29 2e 3c 62 72 3e 0d 0a 4c   LL_JP2).<br>..L
8d60: 5a 4d 41 20 63 61 6e 20 65 61 73 69 6c 79 20 73  ZMA can easily s
8d70: 63 6f 72 65 20 62 65 74 74 65 72 20 63 6f 6d 70  core better comp
8d80: 72 65 73 73 69 6f 6e 20 72 61 74 69 6f 73 20 77  ression ratios w
8d90: 69 74 68 20 6d 6f 72 65 20 6f 72 20 6c 65 73 73  ith more or less
8da0: 20 74 68 65 20 73 61 6d 65 20 6c 65 76 65 6c 20   the same level 
8db0: 6f 66 20 73 6c 6f 77 6e 65 73 73 2e 3c 2f 6c 69  of slowness.</li
8dc0: 3e 0d 0a 3c 2f 75 6c 3e 3c 2f 6c 69 3e 0d 0a 3c  >..</ul></li>..<
8dd0: 6c 69 3e 3c 62 3e 4e 6f 74 65 3c 2f 62 3e 3a 20  li><b>Note</b>: 
8de0: 44 45 46 4c 41 54 45 2c 20 5a 53 54 44 20 61 6e  DEFLATE, ZSTD an
8df0: 64 20 50 4e 47 20 72 65 71 75 69 72 65 20 61 62  d PNG require ab
8e00: 6f 75 74 20 74 68 65 20 73 61 6d 65 20 64 65 63  out the same dec
8e10: 6f 6d 70 72 65 73 73 69 6f 6e 20 74 69 6d 65 20  ompression time 
8e20: 74 68 61 6e 20 3c 62 3e 4e 4f 4e 45 3c 2f 62 3e  than <b>NONE</b>
8e30: 20 28 6e 6f 20 63 6f 6d 70 72 65 73 73 69 6f 6e   (no compression
8e40: 20 61 74 20 61 6c 6c 29 3b 20 61 6e 64 20 73 6f   at all); and so
8e50: 6d 65 74 69 6d 65 73 20 74 68 65 79 20 61 72 65  metimes they are
8e60: 20 6d 61 72 67 69 6e 61 6c 6c 79 20 66 61 73 74   marginally fast
8e70: 65 72 2e 3c 62 72 3e 0d 0a 54 68 69 73 20 69 73  er.<br>..This is
8e80: 20 61 20 76 65 72 79 20 72 65 6c 65 76 61 6e 74   a very relevant
8e90: 20 66 69 6e 64 69 6e 67 2c 20 62 65 63 61 75 73   finding, becaus
8ea0: 65 20 69 74 20 6f 62 6a 65 63 74 69 76 65 6c 79  e it objectively
8eb0: 20 63 6f 6e 66 69 72 6d 73 20 74 68 61 74 20 64   confirms that d
8ec0: 65 70 6c 6f 79 69 6e 67 20 61 20 63 6f 6d 70 72  eploying a compr
8ed0: 65 73 73 65 64 20 52 61 73 74 65 72 20 43 6f 76  essed Raster Cov
8ee0: 65 72 61 67 65 20 64 6f 65 73 6e 27 74 20 69 6e  erage doesn't in
8ef0: 74 72 6f 64 75 63 65 73 20 61 6e 79 20 75 6e 72  troduces any unr
8f00: 65 71 75 69 72 65 64 20 6f 76 65 72 68 65 61 64  equired overhead
8f10: 2c 20 61 6e 64 20 63 61 6e 20 6e 65 76 65 72 20  , and can never 
8f20: 62 65 20 61 20 62 6f 74 74 6c 65 6e 65 63 6b 2e  be a bottleneck.
8f30: 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 41 20 73 68  ..<ul>..<li>A sh
8f40: 6f 72 74 20 72 61 74 69 6f 6e 61 6c 65 3a 20 65  ort rationale: e
8f50: 76 65 72 79 20 28 64 65 29 63 6f 6d 70 72 65 73  very (de)compres
8f60: 73 69 6f 6e 20 73 75 72 65 6c 79 20 72 65 71 75  sion surely requ
8f70: 69 72 65 73 20 6d 6f 72 65 20 43 50 55 20 63 79  ires more CPU cy
8f80: 63 6c 65 73 2c 20 62 75 74 20 63 6f 6d 70 72 65  cles, but compre
8f90: 73 73 69 6f 6e 20 61 6c 77 61 79 73 20 69 6d 70  ssion always imp
8fa0: 6c 69 65 73 20 6c 65 73 73 20 49 2f 4f 20 6f 70  lies less I/O op
8fb0: 65 72 61 74 69 6f 6e 73 2e 3c 62 72 3e 0d 0a 4f  erations.<br>..O
8fc0: 6e 20 6d 6f 64 65 72 6e 20 48 57 20 74 68 69 73  n modern HW this
8fd0: 20 65 6e 64 73 20 75 70 20 69 6e 20 61 20 62 65   ends up in a be
8fe0: 66 69 63 69 61 6c 20 74 72 61 64 65 20 6f 66 66  ficial trade off
8ff0: 2c 20 73 6f 20 70 72 6f 63 65 73 73 69 6e 67 20  , so processing 
9000: 63 6f 6d 70 72 65 73 73 65 64 20 64 61 74 61 20  compressed data 
9010: 63 61 6e 20 62 65 20 75 73 75 61 6c 6c 79 20 6f  can be usually o
9020: 6e 20 70 61 72 20 28 6f 72 20 65 76 65 6e 20 66  n par (or even f
9030: 61 73 74 65 72 29 20 74 68 65 6e 20 70 72 6f 63  aster) then proc
9040: 65 73 73 69 6e 67 20 75 6e 63 6f 6d 70 72 65 73  essing uncompres
9050: 73 65 64 20 64 61 74 61 2e 0d 0a 3c 2f 75 6c 3e  sed data...</ul>
9060: 3c 2f 6c 69 3e 0d 0a 3c 2f 6c 69 3e 0d 0a 3c 2f  </li>..</li>..</
9070: 6f 6c 3e 0d 0a 3c 62 72 3e 0d 0a 3c 68 72 3e 3c  ol>..<br>..<hr><
9080: 62 72 3e 0d 0a 42 61 63 6b 20 74 6f 20 3c 61 20  br>..Back to <a 
9090: 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 77 77  href="https://ww
90a0: 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 66 6f  w.gaia-gis.it/fo
90b0: 73 73 69 6c 2f 6c 69 62 72 61 73 74 65 72 6c 69  ssil/librasterli
90c0: 74 65 32 2f 77 69 6b 69 3f 6e 61 6d 65 3d 72 61  te2/wiki?name=ra
90d0: 73 74 65 72 6c 69 74 65 32 2d 64 6f 63 22 3e 52  sterlite2-doc">R
90e0: 61 73 74 65 72 4c 69 74 65 32 20 64 6f 63 20 69  asterLite2 doc i
90f0: 6e 64 65 78 3c 2f 61 3e 0a 5a 20 39 64 66 61 61  ndex</a>.Z 9dfaa
9100: 62 34 64 63 66 35 31 63 64 32 32 35 33 33 32 31  b4dcf51cd2253321
9110: 35 62 39 30 65 62 30 30 31 36 38 0a              5b90eb00168.