Artifact ef566cc15ca9441af5bc41c69636ec4687bbb546:
File
www/stats.wiki
part of check-in
[45dbaa0c94]
- Fix typo in the new stats.wiki document.
by
drh on
2009-08-22 20:48:17.
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 days<br
0320: 3e 39 2e 32 34 26 6e 62 73 70 3b 79 72 73 0a 3c >9.24 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 GB.<td>35.
0350: 34 26 6e 62 73 70 3b 4d 42 0a 3c 74 64 3e 33 35 4 MB.<td>35
0360: 3a 31 0a 3c 74 64 3e 39 38 32 26 6e 62 73 70 3b :1.<td>982
0370: 4b 42 26 6e 62 73 70 3b 75 70 3c 62 72 3e 31 32 KB up<br>12
0380: 2e 34 26 6e 62 73 70 3b 4d 42 26 6e 62 73 70 3b .4 MB
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 days<b
03e0: 72 3e 32 2e 31 26 6e 62 73 70 3b 79 72 73 0a 3c r>2.1 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 MB.<td>16:
0420: 31 0a 3c 74 64 3e 31 32 38 26 6e 62 73 70 3b 4b 1.<td>128 K
0430: 42 26 6e 62 73 70 3b 75 70 3c 62 72 3e 34 2e 34 B up<br>4.4
0440: 39 26 6e 62 73 70 3b 4d 42 26 6e 62 73 70 3b 64 9 MB 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
04b0: 47 42 0a 3c 74 64 3e 31 34 37 26 6e 62 73 70 3b GB.<td>147
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 MB 
04e0: 3b 75 70 3c 62 72 3e 31 34 31 26 6e 62 73 70 3b ;up<br>141
04f0: 4d 42 26 6e 62 73 70 3b 64 6f 77 6e 0a 3c 2f 74 MB 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 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 MB.<td
0560: 3e 36 2e 33 26 6e 62 73 70 3b 4d 42 0a 3c 74 64 >6.3 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 up<br>
0590: 34 2e 36 36 26 6e 62 73 70 3b 4d 42 26 6e 62 73 4.66 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
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 MB.<t
0620: 64 3e 34 2e 39 26 6e 62 73 70 3b 4d 42 0a 3c 74 d>4.9 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 up<br>
0650: 33 2e 33 35 26 6e 62 73 70 3b 4d 42 26 6e 62 73 3.35 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 70 6f 69 6e 74 20 62 65 63 61 75 73 65 20 tapoint because
0880: 69 74 20 64 65 6d 6f 6e 73 74 72 61 74 65 73 20 it demonstrates
0890: 66 6f 73 73 69 6c 27 73 20 61 62 69 6c 69 74 79 fossil's ability
08a0: 20 74 6f 20 6d 61 6e 61 67 65 0a 61 20 73 69 67 to manage.a sig
08b0: 6e 69 66 69 63 61 6e 74 20 61 6e 64 20 6c 6f 6e nificant and lon
08c0: 67 2d 72 75 6e 6e 69 6e 67 20 70 72 6f 6a 65 63 g-running projec
08d0: 74 2e 0a 54 68 65 20 6e 65 78 74 2d 6c 6f 6e 67 t..The next-long
08e0: 65 73 74 20 72 75 6e 6e 69 6e 67 20 66 6f 73 73 est running foss
08f0: 69 6c 20 70 72 6f 6a 65 63 74 20 69 73 20 66 6f il project is fo
0900: 73 73 69 6c 20 69 74 73 65 6c 66 2c 20 61 74 20 ssil itself, at
0910: 32 2e 31 20 79 65 61 72 73 2e 0a 54 68 65 20 64 2.1 years..The d
0920: 6f 63 75 6d 65 6e 74 61 74 69 6f 6e 20 66 6f 72 ocumentation for
0930: 20 53 51 4c 69 74 65 0a 28 69 64 65 6e 74 69 66 SQLite.(identif
0940: 69 65 64 20 61 62 6f 76 65 20 61 73 20 22 53 51 ied above as "SQ
0950: 4c 69 74 65 20 44 6f 63 73 22 29 20 77 61 73 20 Lite Docs") was
0960: 73 70 6c 69 74 20 6f 66 66 20 6f 66 20 74 68 65 split off of the
0970: 20 6d 61 69 6e 20 53 51 4c 69 74 65 20 0a 73 6f main SQLite .so
0980: 75 72 63 65 20 74 72 65 65 20 61 6e 64 20 69 6e urce tree and in
0990: 74 6f 20 69 74 73 20 6f 77 6e 20 66 6f 73 73 69 to its own fossi
09a0: 6c 20 72 65 70 6f 73 69 74 6f 72 79 20 61 62 6f l repository abo
09b0: 75 74 20 31 2e 37 35 20 79 65 61 72 73 20 61 67 ut 1.75 years ag
09c0: 6f 2e 0a 54 68 65 20 22 53 51 4c 20 4c 6f 67 69 o..The "SQL Logi
09d0: 63 20 54 65 73 74 22 20 6f 72 20 22 53 4c 54 22 c Test" or "SLT"
09e0: 20 70 72 6f 6a 65 63 74 20 69 73 20 61 20 6d 61 project is a ma
09f0: 73 73 69 76 65 0a 63 6f 6c 6c 65 63 74 69 6f 6e ssive.collection
0a00: 20 6f 66 20 53 51 4c 20 73 74 61 74 65 6d 65 6e of SQL statemen
0a10: 74 73 20 61 6e 64 20 74 68 65 69 72 20 6f 75 74 ts and their out
0a20: 70 75 74 20 75 73 65 64 20 74 6f 20 63 6f 6d 70 put used to comp
0a30: 61 72 65 20 74 68 65 20 0a 70 72 6f 63 65 73 73 are the .process
0a40: 69 6e 67 20 6f 66 20 53 51 4c 69 74 65 20 61 67 ing of SQLite ag
0a50: 61 69 6e 73 74 20 4d 79 53 51 4c 2c 20 50 6f 73 ainst MySQL, Pos
0a60: 74 67 72 65 53 51 4c 2c 20 4d 69 63 72 6f 73 6f tgreSQL, Microso
0a70: 66 74 20 53 51 4c 20 53 65 72 76 65 72 2c 0a 61 ft SQL Server,.a
0a80: 6e 64 20 4f 72 61 63 6c 65 2e 20 20 0a 46 69 6e nd Oracle. .Fin
0a90: 61 6c 6c 79 20 22 54 48 33 22 20 69 73 20 61 20 ally "TH3" is a
0aa0: 70 72 6f 70 72 69 65 74 61 72 79 20 73 65 74 20 proprietary set
0ab0: 6f 66 20 74 65 73 74 20 63 61 73 65 73 20 66 6f of test cases fo
0ac0: 72 20 53 51 4c 69 74 65 20 75 73 65 64 20 74 6f r SQLite used to
0ad0: 20 67 69 76 65 0a 31 30 30 25 20 62 72 61 6e 63 give.100% branc
0ae0: 68 20 74 65 73 74 20 63 6f 76 65 72 61 67 65 20 h test coverage
0af0: 6f 66 20 53 51 4c 69 74 65 20 6f 6e 20 65 6d 62 of SQLite on emb
0b00: 65 64 64 65 64 20 70 6c 61 74 66 6f 72 6d 73 2e edded platforms.
0b10: 20 20 41 6c 6c 20 70 72 6f 6a 65 63 74 73 0a 65 All projects.e
0b20: 78 63 65 70 74 20 66 6f 72 20 54 48 33 20 61 72 xcept for TH3 ar
0b30: 65 20 6f 70 65 6e 2d 73 6f 75 72 63 65 2e 0a 0a e open-source...
0b40: 3c 68 32 3e 4d 65 61 73 75 72 65 64 20 41 74 74 <h2>Measured Att
0b50: 72 69 62 75 74 65 73 3c 2f 68 32 3e 0a 0a 49 6e ributes</h2>..In
0b60: 20 66 6f 73 73 69 6c 2c 20 65 76 65 72 79 20 76 fossil, every v
0b70: 65 72 73 69 6f 6e 20 6f 66 20 65 76 65 72 79 20 ersion of every
0b80: 66 69 6c 65 2c 20 65 76 65 72 79 20 77 69 6b 69 file, every wiki
0b90: 20 70 61 67 65 2c 20 65 76 65 72 79 20 63 68 61 page, every cha
0ba0: 6e 67 65 20 74 6f 0a 65 76 65 72 79 20 74 69 63 nge to.every tic
0bb0: 6b 65 74 2c 20 61 6e 64 20 65 76 65 72 79 20 63 ket, and every c
0bc0: 68 65 63 6b 2d 69 6e 20 69 73 20 61 20 73 65 70 heck-in is a sep
0bd0: 61 72 61 74 65 20 22 61 72 74 69 66 61 63 74 22 arate "artifact"
0be0: 2e 20 20 4f 6e 65 20 77 61 79 20 74 6f 0a 74 68 . One way to.th
0bf0: 69 6e 6b 20 6f 66 20 61 20 66 6f 73 73 69 6c 20 ink of a fossil
0c00: 70 72 6f 6a 65 63 74 20 69 73 20 61 73 20 61 20 project is as a
0c10: 62 61 67 20 6f 66 20 61 72 74 69 66 61 63 74 73 bag of artifacts
0c20: 2e 20 20 4f 66 20 63 6f 75 72 73 65 2c 20 74 68 . Of course, th
0c30: 65 72 65 20 69 73 0a 61 20 6c 6f 74 20 6d 6f 72 ere is.a lot mor
0c40: 65 20 74 68 61 6e 20 74 68 69 73 20 67 6f 69 6e e than this goin
0c50: 67 20 6f 6e 20 69 6e 20 66 6f 73 73 69 6c 2e 20 g on in fossil.
0c60: 20 4d 61 6e 79 20 6f 66 20 74 68 65 20 61 72 74 Many of the art
0c70: 69 66 61 63 74 73 20 68 61 76 65 20 6d 65 61 6e ifacts have mean
0c80: 69 6e 67 0a 61 6e 64 20 61 72 65 20 72 65 6c 61 ing.and are rela
0c90: 74 65 64 20 74 6f 20 6f 74 68 65 72 20 61 72 74 ted to other art
0ca0: 69 66 61 63 74 73 2e 20 20 42 75 74 20 61 74 20 ifacts. But at
0cb0: 61 20 6c 6f 77 20 6c 65 76 65 6c 20 28 66 6f 72 a low level (for
0cc0: 20 65 78 61 6d 70 6c 65 20 77 68 65 6e 0a 73 79 example when.sy
0cd0: 6e 63 68 72 6f 6e 69 7a 69 6e 67 20 74 77 6f 20 nchronizing two
0ce0: 69 6e 73 74 61 6e 63 65 73 20 6f 66 20 74 68 65 instances of the
0cf0: 20 73 61 6d 65 20 70 72 6f 6a 65 63 74 29 20 74 same project) t
0d00: 68 65 20 6f 6e 6c 79 20 74 68 69 6e 67 20 74 68 he only thing th
0d10: 61 74 20 6d 61 74 74 65 72 73 0a 69 73 20 74 68 at matters.is th
0d20: 65 20 75 6e 6f 72 64 65 72 65 64 20 63 6f 6c 6c e unordered coll
0d30: 65 63 74 69 6f 6e 20 6f 66 20 61 72 74 69 66 61 ection of artifa
0d40: 63 74 73 2e 20 20 49 6e 20 66 61 63 74 2c 20 6f cts. In fact, o
0d50: 6e 65 20 6f 66 20 74 68 65 20 6b 65 79 20 0a 63 ne of the key .c
0d60: 68 61 72 61 63 74 65 72 69 73 74 69 63 73 20 6f haracteristics o
0d70: 66 20 66 6f 73 73 69 6c 20 69 73 20 74 68 61 74 f fossil is that
0d80: 20 74 68 65 20 65 6e 74 69 72 65 20 70 72 6f 6a the entire proj
0d90: 65 63 74 20 68 69 73 74 6f 72 79 20 63 61 6e 20 ect history can
0da0: 62 65 0a 72 65 63 6f 6e 73 74 72 75 63 74 65 64 be.reconstructed
0db0: 20 73 69 6d 70 6c 79 20 62 79 20 73 63 61 6e 6e simply by scann
0dc0: 69 6e 67 20 74 68 65 20 61 72 74 69 66 61 63 74 ing the artifact
0dd0: 73 20 69 6e 20 61 6e 20 61 72 62 69 74 72 61 72 s in an arbitrar
0de0: 79 20 6f 72 64 65 72 2e 0a 0a 54 68 65 20 6e 75 y order...The nu
0df0: 6d 62 65 72 20 6f 66 20 63 68 65 63 6b 2d 69 6e mber of check-in
0e00: 73 20 69 73 20 74 68 65 20 6e 75 6d 62 65 72 20 s is the number
0e10: 6f 66 20 74 69 6d 65 73 20 74 68 61 74 20 74 68 of times that th
0e20: 65 20 22 63 6f 6d 6d 69 74 22 20 63 6f 6d 6d 61 e "commit" comma
0e30: 6e 64 0a 68 61 73 20 62 65 65 6e 20 72 75 6e 2e nd.has been run.
0e40: 20 20 41 20 73 69 6e 67 6c 65 20 63 68 65 63 6b A single check
0e50: 2d 69 6e 20 6d 69 67 68 74 20 63 68 61 6e 67 65 -in might change
0e60: 20 61 20 33 20 6f 72 20 34 20 66 69 6c 65 73 2c a 3 or 4 files,
0e70: 20 6f 72 20 69 74 20 6d 69 67 68 74 0a 63 68 61 or it might.cha
0e80: 6e 67 65 73 20 73 65 76 65 72 61 6c 20 64 6f 7a nges several doz
0e90: 65 6e 20 64 69 66 66 65 72 65 6e 74 20 66 69 6c en different fil
0ea0: 65 73 2e 20 20 52 65 67 61 72 64 6c 65 73 73 20 es. Regardless
0eb0: 6f 66 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 of the number of
0ec0: 20 66 69 6c 65 73 0a 63 68 61 6e 67 65 64 2c 20 files.changed,
0ed0: 69 74 20 73 74 69 6c 6c 20 6f 6e 6c 79 20 63 6f it still only co
0ee0: 75 6e 74 73 20 61 73 20 6f 6e 65 20 63 68 65 63 unts as one chec
0ef0: 6b 2d 69 6e 2e 0a 0a 54 68 65 20 22 55 6e 63 6f k-in...The "Unco
0f00: 6d 70 72 65 73 73 65 64 20 53 69 7a 65 22 20 69 mpressed Size" i
0f10: 73 20 74 68 65 20 74 6f 74 61 6c 20 73 69 7a 65 s the total size
0f20: 20 6f 66 20 61 6c 6c 20 74 68 65 20 61 72 74 69 of all the arti
0f30: 66 61 63 74 73 20 77 69 74 68 69 6e 0a 74 68 65 facts within.the
0f40: 20 66 6f 73 73 69 6c 20 72 65 70 6f 73 69 74 6f fossil reposito
0f50: 72 79 20 61 73 73 75 6d 69 6e 67 20 74 68 65 79 ry assuming they
0f60: 20 77 65 72 65 20 61 6c 6c 20 75 6e 63 6f 6d 70 were all uncomp
0f70: 72 65 73 73 65 64 20 61 6e 64 20 73 74 6f 72 65 ressed and store
0f80: 64 20 0a 73 65 70 61 72 61 74 65 6c 79 20 6f 6e d .separately on
0f90: 20 74 68 65 20 64 69 73 6b 2e 20 20 46 6f 73 73 the disk. Foss
0fa0: 69 6c 20 6d 61 6b 65 73 20 75 73 65 20 6f 66 20 il makes use of
0fb0: 64 65 6c 74 61 20 63 6f 6d 70 72 65 73 73 20 62 delta compress b
0fc0: 65 74 77 65 65 6e 20 72 65 6c 61 74 65 64 0a 76 etween related.v
0fd0: 65 72 73 69 6f 6e 73 20 6f 66 20 74 68 65 20 73 ersions of the s
0fe0: 61 6d 65 20 66 69 6c 65 2c 20 61 6e 64 20 74 68 ame file, and th
0ff0: 65 6e 20 75 73 69 6e 67 20 7a 6c 69 62 20 63 6f en using zlib co
1000: 6d 70 72 65 73 73 69 6f 6e 20 6f 6e 20 74 68 65 mpression on the
1010: 20 72 65 73 75 6c 74 69 6e 67 0a 64 65 6c 74 61 resulting.delta
1020: 73 2e 20 20 54 68 65 20 74 6f 74 61 6c 20 72 65 s. The total re
1030: 73 75 6c 74 69 6e 67 20 72 65 70 6f 73 69 74 6f sulting reposito
1040: 72 79 20 73 69 7a 65 20 69 73 20 73 68 6f 77 6e ry size is shown
1050: 20 61 66 74 65 72 20 74 68 65 20 75 6e 63 6f 6d after the uncom
1060: 70 72 65 73 73 65 64 0a 73 69 7a 65 2e 20 20 0a pressed.size. .
1070: 0a 4f 6e 20 74 68 65 20 72 69 67 68 74 20 65 6e .On the right en
1080: 64 20 6f 66 20 74 68 65 20 74 61 62 6c 65 2c 20 d of the table,
1090: 77 65 20 73 68 6f 77 20 74 68 65 20 22 43 6c 6f we show the "Clo
10a0: 6e 65 20 42 61 6e 64 77 69 64 74 68 22 2e 20 20 ne Bandwidth".
10b0: 54 68 69 73 20 69 73 20 74 68 65 0a 74 6f 74 61 This is the.tota
10c0: 6c 20 6e 75 6d 62 65 72 20 6f 66 20 62 79 74 65 l number of byte
10d0: 73 20 73 65 6e 74 20 66 72 6f 6d 20 63 6c 69 65 s sent from clie
10e0: 6e 74 20 74 6f 20 73 65 72 76 65 72 20 28 22 75 nt to server ("u
10f0: 70 6c 69 6e 6b 22 29 20 61 6e 64 20 66 72 6f 6d plink") and from
1100: 20 73 65 72 76 65 72 0a 62 61 63 6b 20 74 6f 20 server.back to
1110: 63 6c 69 65 6e 74 20 28 22 64 6f 77 6e 6c 69 6e client ("downlin
1120: 6b 22 29 20 69 6e 20 6f 72 64 65 72 20 74 6f 20 k") in order to
1130: 63 6c 6f 6e 65 20 61 20 72 65 70 6f 73 69 74 6f clone a reposito
1140: 72 79 2e 20 20 54 68 65 73 65 20 62 79 74 65 20 ry. These byte
1150: 63 6f 75 6e 74 73 0a 69 6e 63 6c 75 64 65 20 61 counts.include a
1160: 6c 6c 20 6f 66 20 74 68 65 20 48 54 54 50 20 70 ll of the HTTP p
1170: 72 6f 74 6f 63 6f 6c 20 6f 76 65 72 68 65 61 64 rotocol overhead
1180: 2e 0a 0a 49 6e 20 74 68 65 20 74 61 62 6c 65 20 ...In the table
1190: 61 6e 64 20 74 68 72 6f 75 67 68 6f 75 74 20 74 and throughout t
11a0: 68 69 73 20 61 72 74 69 63 6c 65 2c 0a 22 47 42 his article,."GB
11b0: 22 20 6d 65 61 6e 73 20 67 69 67 61 62 79 74 65 " means gigabyte
11c0: 73 20 28 31 30 3c 73 75 70 3e 3c 73 6d 61 6c 6c s (10<sup><small
11d0: 3e 39 3c 2f 73 6d 61 6c 6c 3e 3c 2f 73 75 70 3e >9</small></sup>
11e0: 20 62 79 74 65 73 29 0a 6e 6f 74 20 3c 61 20 68 bytes).not <a h
11f0: 72 65 66 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e 77 ref="http://en.w
1200: 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b ikipedia.org/wik
1210: 69 2f 47 69 62 69 62 79 74 65 22 3e 67 69 62 69 i/Gibibyte">gibi
1220: 62 79 74 65 73 3c 2f 61 3e 0a 28 32 3c 73 75 70 bytes</a>.(2<sup
1230: 3e 3c 73 6d 61 6c 6c 3e 33 30 3c 2f 73 6d 61 6c ><small>30</smal
1240: 6c 3e 3c 2f 73 75 70 3e 20 62 79 74 65 73 29 2e l></sup> bytes).
1250: 20 20 53 69 6d 69 6c 61 72 6c 79 2c 20 22 4d 42 Similarly, "MB
1260: 22 20 61 6e 64 20 22 4b 42 22 0a 6d 65 61 6e 73 " and "KB".means
1270: 20 6d 65 67 61 62 79 74 65 73 20 61 6e 64 20 6b megabytes and k
1280: 69 6c 6f 62 79 74 65 73 2c 20 6e 6f 74 20 6d 65 ilobytes, not me
1290: 62 69 62 79 74 65 73 20 61 6e 64 20 6b 69 62 69 bibytes and kibi
12a0: 62 79 74 65 73 2e 0a 0a 3c 68 32 3e 41 6e 61 6c bytes...<h2>Anal
12b0: 79 73 69 73 20 41 6e 64 20 53 75 70 70 6c 69 6d ysis And Supplim
12c0: 65 6e 74 61 6c 20 44 61 74 61 3c 2f 68 32 3e 0a ental Data</h2>.
12d0: 0a 50 65 72 68 61 70 73 20 74 68 65 20 74 77 6f .Perhaps the two
12e0: 20 6d 6f 73 74 20 69 6e 74 65 72 65 73 74 69 6e most interestin
12f0: 67 20 64 61 74 61 70 6f 69 6e 74 73 20 69 6e 20 g datapoints in
1300: 74 68 65 20 61 62 6f 76 65 20 74 61 62 6c 65 20 the above table
1310: 61 72 65 20 53 51 4c 69 74 65 0a 61 6e 64 20 53 are SQLite.and S
1320: 4c 54 2e 20 20 53 51 4c 69 74 65 20 69 73 20 61 LT. SQLite is a
1330: 20 6c 6f 6e 67 2d 72 75 6e 6e 69 6e 67 20 70 72 long-running pr
1340: 6f 6a 65 63 74 20 77 69 74 68 20 6c 6f 6e 67 20 oject with long
1350: 72 65 76 69 73 69 6f 6e 20 63 68 61 69 6e 73 2e revision chains.
1360: 0a 53 6f 6d 65 20 6f 66 20 74 68 65 20 66 69 6c .Some of the fil
1370: 65 73 20 69 6e 20 53 51 4c 69 74 65 20 68 61 76 es in SQLite hav
1380: 65 20 62 65 65 6e 20 65 64 69 74 65 64 20 63 6c e been edited cl
1390: 6f 73 65 20 74 6f 20 61 20 74 68 6f 75 73 61 6e ose to a thousan
13a0: 64 20 74 69 6d 65 73 2e 0a 45 61 63 68 20 6f 66 d times..Each of
13b0: 20 74 68 65 73 65 20 65 64 69 74 73 20 69 73 20 these edits is
13c0: 73 74 6f 72 65 64 20 61 73 20 61 20 64 65 6c 74 stored as a delt
13d0: 61 2c 20 61 6e 64 20 68 65 6e 63 65 20 74 68 65 a, and hence the
13e0: 20 53 51 4c 69 74 65 20 70 72 6f 6a 65 63 74 0a SQLite project.
13f0: 67 65 74 73 20 65 78 63 65 6c 6c 65 6e 74 20 33 gets excellent 3
1400: 35 3a 31 20 63 6f 6d 70 72 65 73 73 69 6f 6e 2e 5:1 compression.
1410: 20 20 53 4c 54 2c 20 6f 6e 20 74 68 65 20 6f 74 SLT, on the ot
1420: 68 65 72 20 68 61 6e 64 2c 20 63 6f 6e 73 69 73 her hand, consis
1430: 74 73 20 6f 66 0a 6d 61 6e 79 20 6c 61 72 67 65 ts of.many large
1440: 20 28 6d 65 67 61 62 79 74 65 2d 73 69 7a 65 64 (megabyte-sized
1450: 29 20 53 51 4c 20 73 63 72 69 70 74 73 20 74 68 ) SQL scripts th
1460: 61 74 20 68 61 76 65 20 6f 6e 65 20 6f 72 20 6d at have one or m
1470: 61 79 62 65 20 74 77 6f 0a 76 65 72 73 69 6f 6e aybe two.version
1480: 73 2e 20 20 54 68 65 72 65 20 69 73 20 76 65 72 s. There is ver
1490: 79 20 6c 69 74 74 6c 65 20 64 65 6c 74 61 20 63 y little delta c
14a0: 6f 6d 70 72 65 73 73 69 6f 6e 20 6f 63 63 75 72 ompression occur
14b0: 72 69 6e 67 20 61 6e 64 20 73 6f 20 74 68 65 0a ring and so the.
14c0: 6f 76 65 72 61 6c 6c 20 72 65 70 6f 73 69 74 6f overall reposito
14d0: 72 79 20 63 6f 6d 70 72 65 73 73 69 6f 6e 20 72 ry compression r
14e0: 61 74 69 6f 20 69 73 20 6d 75 63 68 20 6c 6f 77 atio is much low
14f0: 65 72 2e 20 20 4e 6f 74 65 20 61 6c 73 6f 20 74 er. Note also t
1500: 68 61 74 0a 71 75 69 74 65 20 61 20 62 69 74 20 hat.quite a bit
1510: 6d 6f 72 65 20 62 61 6e 64 77 69 64 74 68 20 69 more bandwidth i
1520: 73 20 72 65 71 75 69 72 65 64 20 74 6f 20 63 6c s required to cl
1530: 6f 6e 65 20 53 4c 54 20 74 68 61 6e 20 53 51 4c one SLT than SQL
1540: 69 74 65 2e 0a 0a 46 6f 72 20 74 68 65 20 66 69 ite...For the fi
1550: 72 73 74 20 6e 69 6e 65 20 79 65 61 72 73 20 6f rst nine years o
1560: 66 20 69 74 73 20 64 65 76 65 6c 6f 70 6d 65 6e f its developmen
1570: 74 2c 20 53 51 4c 69 74 65 20 77 61 73 20 76 65 t, SQLite was ve
1580: 72 73 69 6f 6e 65 64 20 62 79 20 43 56 53 2e 0a rsioned by CVS..
1590: 54 68 65 20 72 65 73 75 6c 74 69 6e 67 20 43 56 The resulting CV
15a0: 53 20 72 65 70 6f 73 69 74 6f 72 79 20 6d 65 61 S repository mea
15b0: 73 75 72 65 64 20 6f 76 65 72 20 33 32 30 4d 42 sured over 320MB
15c0: 20 69 6e 20 73 69 7a 65 2e 20 20 53 6f 2c 20 74 in size. So, t
15d0: 68 65 0a 64 65 76 65 6c 6f 70 65 72 73 20 77 65 he.developers we
15e0: 72 65 0a 70 6c 65 61 73 65 6e 74 6c 79 20 73 75 re.pleasently su
15f0: 72 70 72 69 73 65 64 20 74 6f 20 73 65 65 20 74 rprised to see t
1600: 68 61 74 20 74 68 69 73 20 65 6e 74 69 72 65 20 hat this entire
1610: 70 72 6f 6a 65 63 74 20 63 6f 75 6c 64 20 62 65 project could be
1620: 20 63 6c 6f 6e 65 64 20 69 6e 0a 66 6f 73 73 69 cloned in.fossi
1630: 6c 20 75 73 69 6e 67 20 6f 6e 6c 79 20 61 62 6f l using only abo
1640: 75 74 20 31 33 4d 42 20 6f 66 20 6e 65 74 77 6f ut 13MB of netwo
1650: 72 6b 20 74 72 61 66 66 69 63 2e 20 20 54 68 65 rk traffic. The
1660: 20 22 73 79 6e 63 22 20 70 72 6f 74 6f 63 6f 6c "sync" protocol
1670: 0a 75 73 65 64 20 62 79 20 66 6f 73 73 69 6c 20 .used by fossil
1680: 68 61 73 20 74 75 72 6e 65 64 20 6f 75 74 20 74 has turned out t
1690: 6f 20 62 65 20 73 75 72 70 72 69 73 69 6e 67 6c o be surprisingl
16a0: 79 20 65 66 66 69 63 69 65 6e 74 2e 20 20 41 20 y efficient. A
16b0: 74 79 70 69 63 61 6c 0a 63 68 65 63 6b 2d 69 6e typical.check-in
16c0: 20 6f 6e 20 53 51 4c 69 74 65 20 6d 69 67 68 74 on SQLite might
16d0: 20 75 73 65 20 33 20 6f 72 20 34 4b 42 20 6f 66 use 3 or 4KB of
16e0: 20 6e 65 74 77 6f 72 6b 20 62 61 6e 64 77 69 64 network bandwid
16f0: 74 68 20 74 6f 74 61 6c 2e 20 20 48 61 72 64 6c th total. Hardl
1700: 79 0a 77 6f 72 74 68 20 6d 65 61 73 75 72 69 6e y.worth measurin
1710: 67 2e 20 20 54 68 65 20 73 79 6e 63 20 70 72 6f g. The sync pro
1720: 74 6f 63 6f 6c 20 69 73 20 65 66 66 69 63 69 65 tocol is efficie
1730: 6e 74 20 65 6e 6f 75 67 68 20 74 68 61 74 2c 20 nt enough that,
1740: 6f 6e 63 65 20 63 6c 6f 6e 65 64 2c 0a 66 6f 73 once cloned,.fos
1750: 73 69 6c 20 63 6f 75 6c 64 20 65 61 73 69 6c 79 sil could easily
1760: 20 62 65 20 75 73 65 64 20 6f 76 65 72 20 61 20 be used over a
1770: 64 69 61 6c 2d 75 70 20 63 6f 6e 6e 65 63 74 69 dial-up connecti
1780: 6f 6e 2e 0a on..