/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_inventory.py

  • Committer: Robert Collins
  • Date: 2006-06-13 12:54:39 UTC
  • mto: (1767.2.2 integration)
  • mto: This revision was merged to the branch mainline in revision 1769.
  • Revision ID: robertc@robertcollins.net-20060613125439-5cbc77171d03a1a8
Review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        def make_10824_entries():
29
29
            for counter in xrange(10000):
30
30
                bzrlib.inventory.make_entry('file', 'foo',
31
 
                    bzrlib.inventory.ROOT_ID)
 
31
                    "a_parent_id")
32
32
            for counter in xrange(824):
33
33
                bzrlib.inventory.make_entry('directory', 'foo',
34
 
                    bzrlib.inventory.ROOT_ID)
 
34
                    "a_parent_id")
35
35
        # on roberts machine: this originally took:  533ms/  600ms
36
36
        # fixing slots to be vaguely accurate :      365ms/  419ms
37
37
        self.time(make_10824_entries)