Bazaar

Bazaar

 




Wiki Tools

  • Find Page
  • Recent Changes
  • Page History
  • Attachments

Space Efficiency Comparison

Summary

Similar to the approach used for obtaining performance benchmarks, here are the results of running scripts across 33 open source projects measuring the disk usage efficiency of Bazaar and its leading competitors, Mercurial and Git.

Measurement

Operating System

Bazaar

Mercurial

Git

Average ratio of space used to original

Ubuntu

2.31

2.99

2.73

Total space used in all projects (MBytes)

Ubuntu

7025

9294

8206

Comparing the average of the ratios above, Bazaar is 22% more efficient than Mercurial and 15% more efficient than Git.

The Scripts

For each project, a script is run once and the results are recorded. Here's what the script does in a nutshell:

  • unpacks a source code tree
  • imports it into Bazaar or alternative tool
  • makes another branch and works on it: add, commit, edit, commit, status, diff, log, etc.

Note that the branch created is a truly separate branch with its own working tree (the default approach in Bazaar and Mercurial), not a lightweight branch (the default approach in Git).

To run the script yourself, download bzr-usertest and use the default script suite, common. Sample project archives are available here: http://people.ubuntu.com/~ianc/benchmarks/src/.

The Raw Data

Operating System

Bazaar

Mercurial

Git

Ubuntu

disk-bzr-1.1rc1-gutsy.csv

disk-hg-0.94-gutsy.csv

disk-git-1.5.2.5-gutsy.csv

The Computers

Operating System

Version

Bazaar

Mercurial

Git

Computer

Ubuntu

7.10 (Gutsy)

1.1rc1

0.94

1.5.2.5

Dell Dimension 9200 (Core 2 Duo E6300) with 4G of RAM

Disclaimer

The figures given above will undoubtedly change as the revision history on a project gets bigger. That data will be given if and when we can measure it. (Getting the complete revision history converted for use by all three tools is a fair amount of work/effort for a single project, let alone 33 of them.)