Benchmark: Git 1.6.3.3, Hg 1.3.1, Bzr 1.17

Jari Aalto jari.aalto at cante.net
Sun Aug 16 21:44:01 BST 2009


John Arbash Meinel <john at arbash-meinel.com> writes:

> Jari Aalto wrote:
>> I ran *small* *scale* local benchmark on the three DVCS's with
>> interesting results. The times should not be takes as absolute, but only
>> relative to each other. The test system was Debian/Ext3.
>> 
>> All commands in all DVCS's were run with -q option to suppress output
>> and in hg's case output was directed to /dev/null as it does not have -q
>> in call "hg add". All 'add' commands used dot-add form: as in "bzr -q
>> add ."
>> 
>> Bzr is in pretty good shape, but the the cloning takes awfully lot time
>> even on local disk. Also the second commit (after patching 7552 files)
>> takes some time.
>> 
>> Bzr is very effective on disk space (30% increase to original sources),
>> but I don't know how would it really scale on bigger repositories
>> (should import multiple kernels to find that out).
>> 
>> Jari
>>
>
> Were you using "bzr init --2a" or just the default?

Tests were run using no special options (the defaults).

I rerun with 'bzr init --2a', but I'm sorry to report that there was no
significant difference. The only thing that was much faster was *second*
add command, which imported 7552 chnages. The repository size increased
%9 (not significant I assume) with --2a.

I uploaded the data to: http://www.editgrid.com/user/jaalto/vc-test
Here in ascii as well.

The script is at: http://cante.net/~jaalto/tmp/shell

Jari

Kernel import   2.6.30  349 MiB
Times in seconds (real time)
Patch: Kernel sources patched to previous version (2.6.29)

                Git 1.6.3.3     Hg 1.3.1        Bzr 1.17 (with --2a)
init            0,03            0,05            0,90     0,90
add             26,00           1,80            5,50     5,50
commit          0,60            51,00           55,00    53,00

...continue with 2.6.29 patch, 7552 files
add             6,30            0,50            3,00    3,5
commit          0,50            28,00           37,00   24,00
log             0,01            0,13            0,17    0,19
clone           49,00           40,00           71,00   71,00


Kernel sources size: 349 MiB (repository sizes MiB)
               Git              Hg              Bzr
init and ci    460,10           466,60          451,60  447,2
patch and ci   507,70           469,90          457,50  488,7
clone size     506,80           467,00          453,90  485,7
...compared to sources
Clone % bigger 45,21            33,81           30,06   39,17





More information about the bazaar mailing list