Hex Artifact Content
Not logged in

Artifact 659b9f92a84d4bb5b7bb065f4f7e26e5439a3cc5:

File www/stats.wiki part of check-in [2cc95180a0] - Added the "Performance Statistics" page to the embedded documentation. by drh on 2009-08-22 17:40:58.

0000: 3c 68 31 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65  <h1 align="cente
0010: 72 22 3e 50 65 72 66 6f 72 6d 61 6e 63 65 20 53  r">Performance S
0020: 74 61 74 69 73 74 69 63 73 3c 2f 68 31 3e 0a 0a  tatistics</h1>..
0030: 54 68 65 20 71 75 65 73 74 69 6f 6e 73 20 77 69  The questions wi
0040: 6c 6c 20 69 6e 65 76 69 74 61 62 6c 79 20 61 72  ll inevitably ar
0050: 69 73 65 3a 20 20 48 6f 77 20 64 6f 65 73 20 46  ise:  How does F
0060: 6f 73 73 69 6c 20 70 65 72 66 6f 72 6d 3f 20 0a  ossil perform? .
0070: 44 6f 65 73 20 69 74 20 75 73 65 20 61 20 6c 6f  Does it use a lo
0080: 74 20 6f 66 20 64 69 73 6b 20 73 70 61 63 65 20  t of disk space 
0090: 6f 72 20 62 61 6e 64 77 69 64 74 68 3f 20 20 49  or bandwidth?  I
00a0: 73 20 69 74 20 73 63 61 6c 61 62 6c 65 3f 0a 0a  s it scalable?..
00b0: 49 6e 20 61 6e 20 61 74 74 65 6d 70 74 20 74 6f  In an attempt to
00c0: 20 61 6e 73 77 65 72 73 20 74 68 65 73 65 20 71   answers these q
00d0: 75 65 73 74 69 6f 6e 73 2c 20 74 68 69 73 20 72  uestions, this r
00e0: 65 70 6f 72 74 20 6c 6f 6f 6b 73 20 61 74 20 66  eport looks at f
00f0: 69 76 65 0a 70 72 6f 6a 65 63 74 73 20 74 68 61  ive.projects tha
0100: 74 20 75 73 65 20 66 6f 73 73 69 6c 20 66 6f 72  t use fossil for
0110: 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 6d   configuration m
0120: 61 6e 61 67 65 6d 65 6e 74 20 61 6e 64 20 65 78  anagement and ex
0130: 61 6d 69 6e 65 73 20 68 6f 77 0a 77 65 6c 6c 20  amines how.well 
0140: 74 68 65 79 20 61 72 65 20 77 6f 72 6b 69 6e 67  they are working
0150: 2e 20 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67  .  The following
0160: 20 74 61 62 6c 65 20 69 73 20 61 20 73 75 6d 6d   table is a summ
0170: 61 72 79 20 6f 66 20 74 68 65 20 72 65 73 75 6c  ary of the resul
0180: 74 73 2e 0a 45 78 70 6c 61 6e 61 74 69 6f 6e 20  ts..Explanation 
0190: 61 6e 64 20 61 6e 61 6c 79 73 69 73 20 66 6f 6c  and analysis fol
01a0: 6c 6f 77 73 20 74 68 65 20 74 61 62 6c 65 2e 0a  lows the table..
01b0: 0a 3c 74 61 62 6c 65 20 62 6f 72 64 65 72 3d 31  .<table border=1
01c0: 3e 0a 3c 74 72 3e 0a 3c 74 68 3e 50 72 6f 6a 65  >.<tr>.<th>Proje
01d0: 63 74 3c 2f 74 68 3e 0a 3c 74 68 3e 4e 75 6d 62  ct</th>.<th>Numb
01e0: 65 72 20 4f 66 20 41 72 74 69 66 61 63 74 73 3c  er Of Artifacts<
01f0: 2f 74 68 3e 0a 3c 74 68 3e 4e 75 6d 62 65 72 20  /th>.<th>Number 
0200: 4f 66 20 43 68 65 63 6b 2d 69 6e 73 3c 2f 74 68  Of Check-ins</th
0210: 3e 0a 3c 74 68 3e 50 72 6f 6a 65 63 74 26 6e 62  >.<th>Project&nb
0220: 73 70 3b 44 75 72 61 74 69 6f 6e 3c 62 72 3e 28  sp;Duration<br>(
0230: 61 73 20 6f 66 20 32 30 30 39 2d 30 38 2d 32 33  as of 2009-08-23
0240: 29 3c 2f 74 68 3e 0a 3c 74 68 3e 41 76 65 72 61  )</th>.<th>Avera
0250: 67 65 20 43 68 65 63 6b 2d 69 6e 73 20 50 65 72  ge Check-ins Per
0260: 20 44 61 79 3c 2f 74 68 3e 0a 3c 74 68 3e 55 6e   Day</th>.<th>Un
0270: 63 6f 6d 70 72 65 73 73 65 64 20 53 69 7a 65 3c  compressed Size<
0280: 2f 74 68 3e 0a 3c 74 68 3e 52 65 70 6f 73 69 74  /th>.<th>Reposit
0290: 6f 72 79 20 53 69 7a 65 3c 2f 74 68 3e 0a 3c 74  ory Size</th>.<t
02a0: 68 3e 43 6f 6d 70 72 65 73 73 69 6f 6e 20 52 61  h>Compression Ra
02b0: 74 69 6f 3c 2f 74 68 3e 0a 3c 74 68 3e 43 6c 6f  tio</th>.<th>Clo
02c0: 6e 65 20 42 61 6e 64 77 69 64 74 68 3c 2f 74 68  ne Bandwidth</th
02d0: 3e 0a 3c 2f 74 72 3e 0a 0a 3c 74 72 20 61 6c 69  >.</tr>..<tr ali
02e0: 67 6e 3d 22 63 65 6e 74 65 72 22 3e 0a 3c 74 64  gn="center">.<td
02f0: 3e 53 51 4c 69 74 65 0a 3c 74 64 3e 32 38 36 34  >SQLite.<td>2864
0300: 33 0a 3c 74 64 3e 36 37 35 35 0a 3c 74 64 3e 33  3.<td>6755.<td>3
0310: 33 37 33 26 6e 62 73 70 3b 64 61 79 73 3c 62 72  373&nbsp;days<br
0320: 3e 39 2e 32 34 26 6e 62 73 70 3b 79 72 73 0a 3c  >9.24&nbsp;yrs.<
0330: 74 64 3e 32 2e 30 30 0a 3c 74 64 3e 31 2e 32 37  td>2.00.<td>1.27
0340: 26 6e 62 73 70 3b 47 42 0a 3c 74 64 3e 33 35 2e  &nbsp;GB.<td>35.
0350: 34 26 6e 62 73 70 3b 4d 42 0a 3c 74 64 3e 33 35  4&nbsp;MB.<td>35
0360: 3a 31 0a 3c 74 64 3e 39 38 32 26 6e 62 73 70 3b  :1.<td>982&nbsp;
0370: 4b 42 26 6e 62 73 70 3b 75 70 3c 62 72 3e 31 32  KB&nbsp;up<br>12
0380: 2e 34 26 6e 62 73 70 3b 4d 42 26 6e 62 73 70 3b  .4&nbsp;MB&nbsp;
0390: 64 6f 77 6e 0a 3c 2f 74 72 3e 0a 0a 3c 74 72 20  down.</tr>..<tr 
03a0: 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 0a  align="center">.
03b0: 3c 74 64 3e 46 6f 73 73 69 6c 0a 3c 74 64 3e 34  <td>Fossil.<td>4
03c0: 39 38 31 0a 3c 74 64 3e 31 32 37 32 0a 3c 74 64  981.<td>1272.<td
03d0: 3e 37 36 34 26 6e 62 73 70 3b 64 61 79 73 3c 62  >764&nbsp;days<b
03e0: 72 3e 32 2e 31 26 6e 62 73 70 3b 79 72 73 0a 3c  r>2.1&nbsp;yrs.<
03f0: 74 64 3e 31 2e 36 36 0a 3c 74 64 3e 31 34 34 26  td>1.66.<td>144&
0400: 6e 62 73 70 3b 4d 42 0a 3c 74 64 3e 38 2e 37 34  nbsp;MB.<td>8.74
0410: 26 6e 62 73 70 3b 4d 42 0a 3c 74 64 3e 31 36 3a  &nbsp;MB.<td>16:
0420: 31 0a 3c 74 64 3e 31 32 38 26 6e 62 73 70 3b 4b  1.<td>128&nbsp;K
0430: 42 26 6e 62 73 70 3b 75 70 3c 62 72 3e 34 2e 34  B&nbsp;up<br>4.4
0440: 39 26 6e 62 73 70 3b 4d 42 26 6e 62 73 70 3b 64  9&nbsp;MB&nbsp;d
0450: 6f 77 6e 0a 3c 2f 74 72 3e 0a 0a 3c 74 72 20 61  own.</tr>..<tr a
0460: 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 0a 3c  lign="center">.<
0470: 74 64 3e 53 4c 54 0a 3c 74 64 3e 32 30 36 32 0a  td>SLT.<td>2062.
0480: 3c 74 64 3e 36 37 0a 3c 74 64 3e 32 36 36 26 6e  <td>67.<td>266&n
0490: 62 73 70 3b 64 61 79 73 0a 3c 74 64 3e 30 2e 32  bsp;days.<td>0.2
04a0: 35 0a 3c 74 64 3e 31 2e 37 36 26 6e 62 73 70 3b  5.<td>1.76&nbsp;
04b0: 47 42 0a 3c 74 64 3e 31 34 37 26 6e 62 73 70 3b  GB.<td>147&nbsp;
04c0: 4d 42 0a 3c 74 64 3e 31 31 3a 31 0a 3c 74 64 3e  MB.<td>11:1.<td>
04d0: 31 2e 31 26 6e 62 73 70 3b 4d 42 26 6e 62 73 70  1.1&nbsp;MB&nbsp
04e0: 3b 75 70 3c 62 72 3e 31 34 31 26 6e 62 73 70 3b  ;up<br>141&nbsp;
04f0: 4d 42 26 6e 62 73 70 3b 64 6f 77 6e 0a 3c 2f 74  MB&nbsp;down.</t
0500: 72 3e 0a 0a 3c 74 72 20 61 6c 69 67 6e 3d 22 63  r>..<tr align="c
0510: 65 6e 74 65 72 22 3e 0a 3c 74 64 3e 54 48 33 0a  enter">.<td>TH3.
0520: 3c 74 64 3e 31 39 39 39 0a 3c 74 64 3e 34 32 39  <td>1999.<td>429
0530: 0a 3c 74 64 3e 33 33 31 26 6e 62 73 70 3b 64 61  .<td>331&nbsp;da
0540: 79 73 0a 3c 74 64 3e 31 2e 33 30 0a 3c 74 64 3e  ys.<td>1.30.<td>
0550: 37 30 2e 35 26 6e 62 73 70 3b 4d 42 0a 3c 74 64  70.5&nbsp;MB.<td
0560: 3e 36 2e 33 26 6e 62 73 70 3b 4d 42 0a 3c 74 64  >6.3&nbsp;MB.<td
0570: 3e 31 31 3a 31 0a 3c 74 64 3e 35 35 26 6e 62 73  >11:1.<td>55&nbs
0580: 70 3b 4b 42 26 6e 62 73 70 3b 75 70 3c 62 72 3e  p;KB&nbsp;up<br>
0590: 34 2e 36 36 26 6e 62 73 70 3b 4d 42 26 6e 62 73  4.66&nbsp;MB&nbs
05a0: 70 3b 64 6f 77 6e 0a 3c 2f 74 72 3e 0a 0a 3c 74  p;down.</tr>..<t
05b0: 72 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22  r align="center"
05c0: 3e 0a 3c 74 64 3e 53 51 4c 69 74 65 20 44 6f 63  >.<td>SQLite Doc
05d0: 73 0a 3c 74 64 3e 31 37 38 37 0a 3c 74 64 3e 34  s.<td>1787.<td>4
05e0: 34 34 0a 3c 74 64 3e 36 35 30 26 6e 62 73 70 3b  44.<td>650&nbsp;
05f0: 64 61 79 73 3c 62 72 3e 31 2e 37 38 26 6e 62 73  days<br>1.78&nbs
0600: 70 3b 79 72 73 0a 3c 74 64 3e 30 2e 36 38 0a 3c  p;yrs.<td>0.68.<
0610: 74 64 3e 34 33 26 6e 62 73 70 3b 4d 42 0a 3c 74  td>43&nbsp;MB.<t
0620: 64 3e 34 2e 39 26 6e 62 73 70 3b 4d 42 0a 3c 74  d>4.9&nbsp;MB.<t
0630: 64 3e 38 3a 31 0a 3c 74 64 3e 34 36 26 6e 62 73  d>8:1.<td>46&nbs
0640: 70 3b 4b 42 26 6e 62 73 70 3b 75 70 3c 62 72 3e  p;KB&nbsp;up<br>
0650: 33 2e 33 35 26 6e 62 73 70 3b 4d 42 26 6e 62 73  3.35&nbsp;MB&nbs
0660: 70 3b 64 6f 77 6e 0a 3c 2f 74 72 3e 0a 0a 3c 2f  p;down.</tr>..</
0670: 74 61 62 6c 65 3e 0a 0a 3c 68 32 3e 54 68 65 20  table>..<h2>The 
0680: 46 69 76 65 20 50 72 6f 6a 65 63 74 73 3c 2f 68  Five Projects</h
0690: 32 3e 0a 0a 54 68 65 20 66 69 76 65 20 70 72 6f  2>..The five pro
06a0: 6a 65 63 74 73 20 6c 69 73 74 65 64 20 61 62 6f  jects listed abo
06b0: 76 65 20 77 65 72 65 20 63 68 6f 73 65 6e 20 62  ve were chosen b
06c0: 65 63 61 75 73 65 20 74 68 65 79 20 68 61 76 65  ecause they have
06d0: 20 62 65 65 6e 20 69 6e 0a 65 78 69 73 74 61 6e   been in.existan
06e0: 63 65 20 66 6f 72 20 61 20 6c 6f 6e 67 20 74 69  ce for a long ti
06f0: 6d 65 20 28 72 65 6c 61 74 69 76 65 20 74 6f 20  me (relative to 
0700: 74 68 65 20 61 67 65 20 6f 66 20 66 6f 73 73 69  the age of fossi
0710: 6c 29 20 6f 72 20 62 65 63 61 75 73 65 0a 74 68  l) or because.th
0720: 65 79 20 68 61 76 65 20 6c 61 72 67 65 73 20 61  ey have larges a
0730: 6d 6f 75 6e 74 73 20 6f 66 20 63 6f 6e 74 65 6e  mounts of conten
0740: 74 2e 20 20 54 68 65 20 6d 6f 73 74 20 69 6d 70  t.  The most imp
0750: 6f 72 74 61 6e 74 20 70 72 6f 6a 65 63 74 20 75  ortant project u
0760: 73 69 6e 67 0a 66 6f 73 73 69 6c 20 69 73 20 53  sing.fossil is S
0770: 51 4c 69 74 65 2e 20 20 46 6f 73 73 69 6c 20 69  QLite.  Fossil i
0780: 74 73 65 6c 66 0a 69 73 20 62 75 69 6c 74 20 6f  tself.is built o
0790: 6e 20 74 6f 70 20 6f 66 20 53 51 4c 69 74 65 20  n top of SQLite 
07a0: 61 6e 64 20 73 6f 20 6f 62 76 69 6f 75 73 6c 79  and so obviously
07b0: 20 53 51 4c 69 74 65 20 68 61 73 20 74 6f 20 70   SQLite has to p
07c0: 72 65 64 61 74 65 20 66 6f 73 73 69 6c 2e 0a 53  redate fossil..S
07d0: 51 4c 69 74 65 20 77 61 73 20 6f 72 69 67 69 6e  QLite was origin
07e0: 61 6c 6c 79 20 76 65 72 73 69 6f 6e 65 64 20 75  ally versioned u
07f0: 73 69 6e 67 20 43 56 53 2c 20 62 75 74 20 72 65  sing CVS, but re
0800: 63 65 6e 74 6c 79 20 74 68 65 20 65 6e 74 69 72  cently the entir
0810: 65 20 39 2d 79 65 61 72 0a 61 6e 64 20 33 32 30  e 9-year.and 320
0820: 2d 4d 42 20 43 56 53 20 68 69 73 74 6f 72 79 20  -MB CVS history 
0830: 6f 66 20 53 51 4c 69 74 65 20 77 61 73 20 63 6f  of SQLite was co
0840: 6e 76 65 72 74 65 64 20 6f 76 65 72 20 74 6f 20  nverted over to 
0850: 46 6f 73 73 69 6c 2e 20 20 54 68 69 73 20 69 73  Fossil.  This is
0860: 0a 61 6e 20 69 6d 70 6f 72 74 61 6e 74 20 64 61  .an important da
0870: 74 61 62 61 73 65 20 62 65 63 61 75 73 65 20 69  tabase because i
0880: 74 20 64 65 6d 6f 6e 73 74 72 61 74 65 73 20 66  t demonstrates f
0890: 6f 73 73 69 6c 27 73 20 61 62 69 6c 69 74 79 20  ossil's ability 
08a0: 74 6f 20 6d 61 6e 61 67 65 0a 61 20 73 69 67 6e  to manage.a sign
08b0: 69 66 69 63 61 6e 74 20 61 6e 64 20 6c 6f 6e 67  ificant and long
08c0: 2d 72 75 6e 6e 69 6e 67 20 70 72 6f 6a 65 63 74  -running project
08d0: 2e 0a 54 68 65 20 6e 65 78 74 2d 6c 6f 6e 67 65  ..The next-longe
08e0: 73 74 20 72 75 6e 6e 69 6e 67 20 66 6f 73 73 69  st running fossi
08f0: 6c 20 70 72 6f 6a 65 63 74 20 69 73 20 66 6f 73  l project is fos
0900: 73 69 6c 20 69 74 73 65 6c 66 2c 20 61 74 20 32  sil itself, at 2
0910: 2e 31 20 79 65 61 72 73 2e 0a 54 68 65 20 64 6f  .1 years..The do
0920: 63 75 6d 65 6e 74 61 74 69 6f 6e 20 66 6f 72 20  cumentation for 
0930: 53 51 4c 69 74 65 0a 28 69 64 65 6e 74 69 66 69  SQLite.(identifi
0940: 65 64 20 61 62 6f 76 65 20 61 73 20 22 53 51 4c  ed above as "SQL
0950: 69 74 65 20 44 6f 63 73 22 29 20 77 61 73 20 73  ite Docs") was s
0960: 70 6c 69 74 20 6f 66 66 20 6f 66 20 74 68 65 20  plit off of the 
0970: 6d 61 69 6e 20 53 51 4c 69 74 65 20 0a 73 6f 75  main SQLite .sou
0980: 72 63 65 20 74 72 65 65 20 61 6e 64 20 69 6e 74  rce tree and int
0990: 6f 20 69 74 73 20 6f 77 6e 20 66 6f 73 73 69 6c  o its own fossil
09a0: 20 72 65 70 6f 73 69 74 6f 72 79 20 61 62 6f 75   repository abou
09b0: 74 20 31 2e 37 35 20 79 65 61 72 73 20 61 67 6f  t 1.75 years ago
09c0: 2e 0a 54 68 65 20 22 53 51 4c 20 4c 6f 67 69 63  ..The "SQL Logic
09d0: 20 54 65 73 74 22 20 6f 72 20 22 53 4c 54 22 20   Test" or "SLT" 
09e0: 70 72 6f 6a 65 63 74 20 69 73 20 61 20 6d 61 73  project is a mas
09f0: 73 69 76 65 0a 63 6f 6c 6c 65 63 74 69 6f 6e 20  sive.collection 
0a00: 6f 66 20 53 51 4c 20 73 74 61 74 65 6d 65 6e 74  of SQL statement
0a10: 73 20 61 6e 64 20 74 68 65 69 72 20 6f 75 74 70  s and their outp
0a20: 75 74 20 75 73 65 64 20 74 6f 20 63 6f 6d 70 61  ut used to compa
0a30: 72 65 20 74 68 65 20 0a 70 72 6f 63 65 73 73 69  re the .processi
0a40: 6e 67 20 6f 66 20 53 51 4c 69 74 65 20 61 67 61  ng of SQLite aga
0a50: 69 6e 73 74 20 4d 79 53 51 4c 2c 20 50 6f 73 74  inst MySQL, Post
0a60: 67 72 65 53 51 4c 2c 20 4d 69 63 72 6f 73 6f 66  greSQL, Microsof
0a70: 74 20 53 51 4c 20 53 65 72 76 65 72 2c 0a 61 6e  t SQL Server,.an
0a80: 64 20 4f 72 61 63 6c 65 2e 20 20 0a 46 69 6e 61  d Oracle.  .Fina
0a90: 6c 6c 79 20 22 54 48 33 22 20 69 73 20 61 20 70  lly "TH3" is a p
0aa0: 72 6f 70 72 69 65 74 61 72 79 20 73 65 74 20 6f  roprietary set o
0ab0: 66 20 74 65 73 74 20 63 61 73 65 73 20 66 6f 72  f test cases for
0ac0: 20 53 51 4c 69 74 65 20 75 73 65 64 20 74 6f 20   SQLite used to 
0ad0: 67 69 76 65 0a 31 30 30 25 20 62 72 61 6e 63 68  give.100% branch
0ae0: 20 74 65 73 74 20 63 6f 76 65 72 61 67 65 20 6f   test coverage o
0af0: 66 20 53 51 4c 69 74 65 20 6f 6e 20 65 6d 62 65  f SQLite on embe
0b00: 64 64 65 64 20 70 6c 61 74 66 6f 72 6d 73 2e 20  dded platforms. 
0b10: 20 41 6c 6c 20 70 72 6f 6a 65 63 74 73 0a 65 78   All projects.ex
0b20: 63 65 70 74 20 66 6f 72 20 54 48 33 20 61 72 65  cept for TH3 are
0b30: 20 6f 70 65 6e 2d 73 6f 75 72 63 65 2e 0a 0a 3c   open-source...<
0b40: 68 32 3e 4d 65 61 73 75 72 65 64 20 41 74 74 72  h2>Measured Attr
0b50: 69 62 75 74 65 73 3c 2f 68 32 3e 0a 0a 49 6e 20  ibutes</h2>..In 
0b60: 66 6f 73 73 69 6c 2c 20 65 76 65 72 79 20 76 65  fossil, every ve
0b70: 72 73 69 6f 6e 20 6f 66 20 65 76 65 72 79 20 66  rsion of every f
0b80: 69 6c 65 2c 20 65 76 65 72 79 20 77 69 6b 69 20  ile, every wiki 
0b90: 70 61 67 65 2c 20 65 76 65 72 79 20 63 68 61 6e  page, every chan
0ba0: 67 65 20 74 6f 0a 65 76 65 72 79 20 74 69 63 6b  ge to.every tick
0bb0: 65 74 2c 20 61 6e 64 20 65 76 65 72 79 20 63 68  et, and every ch
0bc0: 65 63 6b 2d 69 6e 20 69 73 20 61 20 73 65 70 61  eck-in is a sepa
0bd0: 72 61 74 65 20 22 61 72 74 69 66 61 63 74 22 2e  rate "artifact".
0be0: 20 20 4f 6e 65 20 77 61 79 20 74 6f 0a 74 68 69    One way to.thi
0bf0: 6e 6b 20 6f 66 20 61 20 66 6f 73 73 69 6c 20 70  nk of a fossil p
0c00: 72 6f 6a 65 63 74 20 69 73 20 61 73 20 61 20 62  roject is as a b
0c10: 61 67 20 6f 66 20 61 72 74 69 66 61 63 74 73 2e  ag of artifacts.
0c20: 20 20 4f 66 20 63 6f 75 72 73 65 2c 20 74 68 65    Of course, the
0c30: 72 65 20 69 73 0a 61 20 6c 6f 74 20 6d 6f 72 65  re is.a lot more
0c40: 20 74 68 61 6e 20 74 68 69 73 20 67 6f 69 6e 67   than this going
0c50: 20 6f 6e 20 69 6e 20 66 6f 73 73 69 6c 2e 20 20   on in fossil.  
0c60: 4d 61 6e 79 20 6f 66 20 74 68 65 20 61 72 74 69  Many of the arti
0c70: 66 61 63 74 73 20 68 61 76 65 20 6d 65 61 6e 69  facts have meani
0c80: 6e 67 0a 61 6e 64 20 61 72 65 20 72 65 6c 61 74  ng.and are relat
0c90: 65 64 20 74 6f 20 6f 74 68 65 72 20 61 72 74 69  ed to other arti
0ca0: 66 61 63 74 73 2e 20 20 42 75 74 20 61 74 20 61  facts.  But at a
0cb0: 20 6c 6f 77 20 6c 65 76 65 6c 20 28 66 6f 72 20   low level (for 
0cc0: 65 78 61 6d 70 6c 65 20 77 68 65 6e 0a 73 79 6e  example when.syn
0cd0: 63 68 72 6f 6e 69 7a 69 6e 67 20 74 77 6f 20 69  chronizing two i
0ce0: 6e 73 74 61 6e 63 65 73 20 6f 66 20 74 68 65 20  nstances of the 
0cf0: 73 61 6d 65 20 70 72 6f 6a 65 63 74 29 20 74 68  same project) th
0d00: 65 20 6f 6e 6c 79 20 74 68 69 6e 67 20 74 68 61  e only thing tha
0d10: 74 20 6d 61 74 74 65 72 73 0a 69 73 20 74 68 65  t matters.is the
0d20: 20 75 6e 6f 72 64 65 72 65 64 20 63 6f 6c 6c 65   unordered colle
0d30: 63 74 69 6f 6e 20 6f 66 20 61 72 74 69 66 61 63  ction of artifac
0d40: 74 73 2e 20 20 49 6e 20 66 61 63 74 2c 20 6f 6e  ts.  In fact, on
0d50: 65 20 6f 66 20 74 68 65 20 6b 65 79 20 0a 63 68  e of the key .ch
0d60: 61 72 61 63 74 65 72 69 73 74 69 63 73 20 6f 66  aracteristics of
0d70: 20 66 6f 73 73 69 6c 20 69 73 20 74 68 61 74 20   fossil is that 
0d80: 74 68 65 20 65 6e 74 69 72 65 20 70 72 6f 6a 65  the entire proje
0d90: 63 74 20 68 69 73 74 6f 72 79 20 63 61 6e 20 62  ct history can b
0da0: 65 0a 72 65 63 6f 6e 73 74 72 75 63 74 65 64 20  e.reconstructed 
0db0: 73 69 6d 70 6c 79 20 62 79 20 73 63 61 6e 6e 69  simply by scanni
0dc0: 6e 67 20 74 68 65 20 61 72 74 69 66 61 63 74 73  ng the artifacts
0dd0: 20 69 6e 20 61 6e 20 61 72 62 69 74 72 61 72 79   in an arbitrary
0de0: 20 6f 72 64 65 72 2e 0a 0a 54 68 65 20 6e 75 6d   order...The num
0df0: 62 65 72 20 6f 66 20 63 68 65 63 6b 2d 69 6e 73  ber of check-ins
0e00: 20 69 73 20 74 68 65 20 6e 75 6d 62 65 72 20 6f   is the number o
0e10: 66 20 74 69 6d 65 73 20 74 68 61 74 20 74 68 65  f times that the
0e20: 20 22 63 6f 6d 6d 69 74 22 20 63 6f 6d 6d 61 6e   "commit" comman
0e30: 64 0a 68 61 73 20 62 65 65 6e 20 72 75 6e 2e 20  d.has been run. 
0e40: 20 41 20 73 69 6e 67 6c 65 20 63 68 65 63 6b 2d   A single check-
0e50: 69 6e 20 6d 69 67 68 74 20 63 68 61 6e 67 65 20  in might change 
0e60: 61 20 33 20 6f 72 20 34 20 66 69 6c 65 73 2c 20  a 3 or 4 files, 
0e70: 6f 72 20 69 74 20 6d 69 67 68 74 0a 63 68 61 6e  or it might.chan
0e80: 67 65 73 20 73 65 76 65 72 61 6c 20 64 6f 7a 65  ges several doze
0e90: 6e 20 64 69 66 66 65 72 65 6e 74 20 66 69 6c 65  n different file
0ea0: 73 2e 20 20 52 65 67 61 72 64 6c 65 73 73 20 6f  s.  Regardless o
0eb0: 66 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20  f the number of 
0ec0: 66 69 6c 65 73 0a 63 68 61 6e 67 65 64 2c 20 69  files.changed, i
0ed0: 74 20 73 74 69 6c 6c 20 6f 6e 6c 79 20 63 6f 75  t still only cou
0ee0: 6e 74 73 20 61 73 20 6f 6e 65 20 63 68 65 63 6b  nts as one check
0ef0: 2d 69 6e 2e 0a 0a 54 68 65 20 22 55 6e 63 6f 6d  -in...The "Uncom
0f00: 70 72 65 73 73 65 64 20 53 69 7a 65 22 20 69 73  pressed Size" is
0f10: 20 74 68 65 20 74 6f 74 61 6c 20 73 69 7a 65 20   the total size 
0f20: 6f 66 20 61 6c 6c 20 74 68 65 20 61 72 74 69 66  of all the artif
0f30: 61 63 74 73 20 77 69 74 68 69 6e 0a 74 68 65 20  acts within.the 
0f40: 66 6f 73 73 69 6c 20 72 65 70 6f 73 69 74 6f 72  fossil repositor
0f50: 79 20 61 73 73 75 6d 69 6e 67 20 74 68 65 79 20  y assuming they 
0f60: 77 65 72 65 20 61 6c 6c 20 75 6e 63 6f 6d 70 72  were all uncompr
0f70: 65 73 73 65 64 20 61 6e 64 20 73 74 6f 72 65 64  essed and stored
0f80: 20 0a 73 65 70 61 72 61 74 65 6c 79 20 6f 6e 20   .separately on 
0f90: 74 68 65 20 64 69 73 6b 2e 20 20 46 6f 73 73 69  the disk.  Fossi
0fa0: 6c 20 6d 61 6b 65 73 20 75 73 65 20 6f 66 20 64  l makes use of d
0fb0: 65 6c 74 61 20 63 6f 6d 70 72 65 73 73 20 62 65  elta compress be
0fc0: 74 77 65 65 6e 20 72 65 6c 61 74 65 64 0a 76 65  tween related.ve
0fd0: 72 73 69 6f 6e 73 20 6f 66 20 74 68 65 20 73 61  rsions of the sa
0fe0: 6d 65 20 66 69 6c 65 2c 20 61 6e 64 20 74 68 65  me file, and the
0ff0: 6e 20 75 73 69 6e 67 20 7a 6c 69 62 20 63 6f 6d  n using zlib com
1000: 70 72 65 73 73 69 6f 6e 20 6f 6e 20 74 68 65 20  pression on the 
1010: 72 65 73 75 6c 74 69 6e 67 0a 64 65 6c 74 61 73  resulting.deltas
1020: 2e 20 20 54 68 65 20 74 6f 74 61 6c 20 72 65 73  .  The total res
1030: 75 6c 74 69 6e 67 20 72 65 70 6f 73 69 74 6f 72  ulting repositor
1040: 79 20 73 69 7a 65 20 69 73 20 73 68 6f 77 6e 20  y size is shown 
1050: 61 66 74 65 72 20 74 68 65 20 75 6e 63 6f 6d 70  after the uncomp
1060: 72 65 73 73 65 64 0a 73 69 7a 65 2e 20 20 0a 0a  ressed.size.  ..
1070: 4f 6e 20 74 68 65 20 72 69 67 68 74 20 65 6e 64  On the right end
1080: 20 6f 66 20 74 68 65 20 74 61 62 6c 65 2c 20 77   of the table, w
1090: 65 20 73 68 6f 77 20 74 68 65 20 22 43 6c 6f 6e  e show the "Clon
10a0: 65 20 42 61 6e 64 77 69 64 74 68 22 2e 20 20 54  e Bandwidth".  T
10b0: 68 69 73 20 69 73 20 74 68 65 0a 74 6f 74 61 6c  his is the.total
10c0: 20 6e 75 6d 62 65 72 20 6f 66 20 62 79 74 65 73   number of bytes
10d0: 20 73 65 6e 74 20 66 72 6f 6d 20 63 6c 69 65 6e   sent from clien
10e0: 74 20 74 6f 20 73 65 72 76 65 72 20 28 22 75 70  t to server ("up
10f0: 6c 69 6e 6b 22 29 20 61 6e 64 20 66 72 6f 6d 20  link") and from 
1100: 73 65 72 76 65 72 0a 62 61 63 6b 20 74 6f 20 63  server.back to c
1110: 6c 69 65 6e 74 20 28 22 64 6f 77 6e 6c 69 6e 6b  lient ("downlink
1120: 22 29 20 69 6e 20 6f 72 64 65 72 20 74 6f 20 63  ") in order to c
1130: 6c 6f 6e 65 20 61 20 72 65 70 6f 73 69 74 6f 72  lone a repositor
1140: 79 2e 20 20 54 68 65 73 65 20 62 79 74 65 20 63  y.  These byte c
1150: 6f 75 6e 74 73 0a 69 6e 63 6c 75 64 65 20 61 6c  ounts.include al
1160: 6c 20 6f 66 20 74 68 65 20 48 54 54 50 20 70 72  l of the HTTP pr
1170: 6f 74 6f 63 6f 6c 20 6f 76 65 72 68 65 61 64 2e  otocol overhead.
1180: 0a 0a 49 6e 20 74 68 65 20 74 61 62 6c 65 20 61  ..In the table a
1190: 6e 64 20 74 68 72 6f 75 67 68 6f 75 74 20 74 68  nd throughout th
11a0: 69 73 20 61 72 74 69 63 6c 65 2c 0a 22 47 42 22  is article,."GB"
11b0: 20 6d 65 61 6e 73 20 67 69 67 61 62 79 74 65 73   means gigabytes
11c0: 20 28 31 30 3c 73 75 70 3e 3c 73 6d 61 6c 6c 3e   (10<sup><small>
11d0: 39 3c 2f 73 6d 61 6c 6c 3e 3c 2f 73 75 70 3e 20  9</small></sup> 
11e0: 62 79 74 65 73 29 0a 6e 6f 74 20 3c 61 20 68 72  bytes).not <a hr
11f0: 65 66 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e 77 69  ef="http://en.wi
1200: 6b 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b 69  kipedia.org/wiki
1210: 2f 47 69 62 69 62 79 74 65 22 3e 67 69 62 69 62  /Gibibyte">gibib
1220: 79 74 65 73 3c 2f 61 3e 0a 28 32 3c 73 75 70 3e  ytes</a>.(2<sup>
1230: 3c 73 6d 61 6c 6c 3e 33 30 3c 2f 73 6d 61 6c 6c  <small>30</small
1240: 3e 3c 2f 73 75 70 3e 20 62 79 74 65 73 29 2e 20  ></sup> bytes). 
1250: 20 53 69 6d 69 6c 61 72 6c 79 2c 20 22 4d 42 22   Similarly, "MB"
1260: 20 61 6e 64 20 22 4b 42 22 0a 6d 65 61 6e 73 20   and "KB".means 
1270: 6d 65 67 61 62 79 74 65 73 20 61 6e 64 20 6b 69  megabytes and ki
1280: 6c 6f 62 79 74 65 73 2c 20 6e 6f 74 20 6d 65 62  lobytes, not meb
1290: 69 62 79 74 65 73 20 61 6e 64 20 6b 69 62 69 62  ibytes and kibib
12a0: 79 74 65 73 2e 0a 0a 3c 68 32 3e 41 6e 61 6c 79  ytes...<h2>Analy
12b0: 73 69 73 20 41 6e 64 20 53 75 70 70 6c 69 6d 65  sis And Supplime
12c0: 6e 74 61 6c 20 44 61 74 61 3c 2f 68 32 3e 0a 0a  ntal Data</h2>..
12d0: 50 65 72 68 61 70 73 20 74 68 65 20 74 77 6f 20  Perhaps the two 
12e0: 6d 6f 73 74 20 69 6e 74 65 72 65 73 74 69 6e 67  most interesting
12f0: 20 64 61 74 61 70 6f 69 6e 74 73 20 69 6e 20 74   datapoints in t
1300: 68 65 20 61 62 6f 76 65 20 74 61 62 6c 65 20 61  he above table a
1310: 72 65 20 53 51 4c 69 74 65 0a 61 6e 64 20 53 4c  re SQLite.and SL
1320: 54 2e 20 20 53 51 4c 69 74 65 20 69 73 20 61 20  T.  SQLite is a 
1330: 6c 6f 6e 67 2d 72 75 6e 6e 69 6e 67 20 70 72 6f  long-running pro
1340: 6a 65 63 74 20 77 69 74 68 20 6c 6f 6e 67 20 72  ject with long r
1350: 65 76 69 73 69 6f 6e 20 63 68 61 69 6e 73 2e 0a  evision chains..
1360: 53 6f 6d 65 20 6f 66 20 74 68 65 20 66 69 6c 65  Some of the file
1370: 73 20 69 6e 20 53 51 4c 69 74 65 20 68 61 76 65  s in SQLite have
1380: 20 62 65 65 6e 20 65 64 69 74 65 64 20 63 6c 6f   been edited clo
1390: 73 65 20 74 6f 20 61 20 74 68 6f 75 73 61 6e 64  se to a thousand
13a0: 20 74 69 6d 65 73 2e 0a 45 61 63 68 20 6f 66 20   times..Each of 
13b0: 74 68 65 73 65 20 65 64 69 74 73 20 69 73 20 73  these edits is s
13c0: 74 6f 72 65 64 20 61 73 20 61 20 64 65 6c 74 61  tored as a delta
13d0: 2c 20 61 6e 64 20 68 65 6e 63 65 20 74 68 65 20  , and hence the 
13e0: 53 51 4c 69 74 65 20 70 72 6f 6a 65 63 74 0a 67  SQLite project.g
13f0: 65 74 73 20 65 78 63 65 6c 6c 65 6e 74 20 33 35  ets excellent 35
1400: 3a 31 20 63 6f 6d 70 72 65 73 73 69 6f 6e 2e 20  :1 compression. 
1410: 20 53 4c 54 2c 20 6f 6e 20 74 68 65 20 6f 74 68   SLT, on the oth
1420: 65 72 20 68 61 6e 64 2c 20 63 6f 6e 73 69 73 74  er hand, consist
1430: 73 20 6f 66 0a 6d 61 6e 79 20 6c 61 72 67 65 20  s of.many large 
1440: 28 6d 65 67 61 62 79 74 65 2d 73 69 7a 65 64 29  (megabyte-sized)
1450: 20 53 51 4c 20 73 63 72 69 70 74 73 20 74 68 61   SQL scripts tha
1460: 74 20 68 61 76 65 20 6f 6e 65 20 6f 72 20 6d 61  t have one or ma
1470: 79 62 65 20 74 77 6f 0a 76 65 72 73 69 6f 6e 73  ybe two.versions
1480: 2e 20 20 54 68 65 72 65 20 69 73 20 76 65 72 79  .  There is very
1490: 20 6c 69 74 74 6c 65 20 64 65 6c 74 61 20 63 6f   little delta co
14a0: 6d 70 72 65 73 73 69 6f 6e 20 6f 63 63 75 72 72  mpression occurr
14b0: 69 6e 67 20 61 6e 64 20 73 6f 20 74 68 65 0a 6f  ing and so the.o
14c0: 76 65 72 61 6c 6c 20 72 65 70 6f 73 69 74 6f 72  verall repositor
14d0: 79 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 61  y compression ra
14e0: 74 69 6f 20 69 73 20 6d 75 63 68 20 6c 6f 77 65  tio is much lowe
14f0: 72 2e 20 20 4e 6f 74 65 20 61 6c 73 6f 20 74 68  r.  Note also th
1500: 61 74 0a 71 75 69 74 65 20 61 20 62 69 74 20 6d  at.quite a bit m
1510: 6f 72 65 20 62 61 6e 64 77 69 64 74 68 20 69 73  ore bandwidth is
1520: 20 72 65 71 75 69 72 65 64 20 74 6f 20 63 6c 6f   required to clo
1530: 6e 65 20 53 4c 54 20 74 68 61 6e 20 53 51 4c 69  ne SLT than SQLi
1540: 74 65 2e 0a 0a 46 6f 72 20 74 68 65 20 66 69 72  te...For the fir
1550: 73 74 20 6e 69 6e 65 20 79 65 61 72 73 20 6f 66  st nine years of
1560: 20 69 74 73 20 64 65 76 65 6c 6f 70 6d 65 6e 74   its development
1570: 2c 20 53 51 4c 69 74 65 20 77 61 73 20 76 65 72  , SQLite was ver
1580: 73 69 6f 6e 65 64 20 62 79 20 43 56 53 2e 0a 54  sioned by CVS..T
1590: 68 65 20 72 65 73 75 6c 74 69 6e 67 20 43 56 53  he resulting CVS
15a0: 20 72 65 70 6f 73 69 74 6f 72 79 20 6d 65 61 73   repository meas
15b0: 75 72 65 64 20 6f 76 65 72 20 33 32 30 4d 42 20  ured over 320MB 
15c0: 69 6e 20 73 69 7a 65 2e 20 20 53 6f 2c 20 74 68  in size.  So, th
15d0: 65 0a 64 65 76 65 6c 6f 70 65 72 73 20 77 65 72  e.developers wer
15e0: 65 0a 70 6c 65 61 73 65 6e 74 6c 79 20 73 75 72  e.pleasently sur
15f0: 70 72 69 73 65 64 20 74 6f 20 73 65 65 20 74 68  prised to see th
1600: 61 74 20 74 68 69 73 20 65 6e 74 69 72 65 20 70  at this entire p
1610: 72 6f 6a 65 63 74 20 63 6f 75 6c 64 20 62 65 20  roject could be 
1620: 63 6c 6f 6e 65 64 20 69 6e 0a 66 6f 73 73 69 6c  cloned in.fossil
1630: 20 75 73 69 6e 67 20 6f 6e 6c 79 20 61 62 6f 75   using only abou
1640: 74 20 31 33 4d 42 20 6f 66 20 6e 65 74 77 6f 72  t 13MB of networ
1650: 6b 20 74 72 61 66 66 69 63 2e 20 20 54 68 65 20  k traffic.  The 
1660: 22 73 79 6e 63 22 20 70 72 6f 74 6f 63 6f 6c 0a  "sync" protocol.
1670: 75 73 65 64 20 62 79 20 66 6f 73 73 69 6c 20 68  used by fossil h
1680: 61 73 20 74 75 72 6e 65 64 20 6f 75 74 20 74 6f  as turned out to
1690: 20 62 65 20 73 75 72 70 72 69 73 69 6e 67 6c 79   be surprisingly
16a0: 20 65 66 66 69 63 69 65 6e 74 2e 20 20 41 20 74   efficient.  A t
16b0: 79 70 69 63 61 6c 0a 63 68 65 63 6b 2d 69 6e 20  ypical.check-in 
16c0: 6f 6e 20 53 51 4c 69 74 65 20 6d 69 67 68 74 20  on SQLite might 
16d0: 75 73 65 20 33 20 6f 72 20 34 4b 42 20 6f 66 20  use 3 or 4KB of 
16e0: 6e 65 74 77 6f 72 6b 20 62 61 6e 64 77 69 64 74  network bandwidt
16f0: 68 20 74 6f 74 61 6c 2e 20 20 48 61 72 64 6c 79  h total.  Hardly
1700: 0a 77 6f 72 74 68 20 6d 65 61 73 75 72 69 6e 67  .worth measuring
1710: 2e 20 20 54 68 65 20 73 79 6e 63 20 70 72 6f 74  .  The sync prot
1720: 6f 63 6f 6c 20 69 73 20 65 66 66 69 63 69 65 6e  ocol is efficien
1730: 74 20 65 6e 6f 75 67 68 20 74 68 61 74 2c 20 6f  t enough that, o
1740: 6e 63 65 20 63 6c 6f 6e 65 64 2c 0a 66 6f 73 73  nce cloned,.foss
1750: 69 6c 20 63 6f 75 6c 64 20 65 61 73 69 6c 79 20  il could easily 
1760: 62 65 20 75 73 65 64 20 6f 76 65 72 20 61 20 64  be used over a d
1770: 69 61 6c 2d 75 70 20 63 6f 6e 6e 65 63 74 69 6f  ial-up connectio
1780: 6e 2e 0a                                         n..