~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-17 14:18:30 UTC
  • mfrom: (1934.1.21 xml_writer)
  • Revision ID: pqm@pqm.ubuntu.com-20060817141830-383cad75e9090732
(robertc,jam) Custom xml serializer saves a lot of time when serializing inventories

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
                                                 hot_cache=hot_cache)
85
85
        return creator.create(root=root)
86
86
 
 
87
    def make_kernel_like_inventory(self):
 
88
        """Create an inventory with the properties of a kernel-like tree
 
89
 
 
90
        This should be equivalent to a committed kernel like tree, not
 
91
        just a working tree.
 
92
        """
 
93
        from bzrlib.benchmarks.tree_creator.kernel_like import (
 
94
            KernelLikeInventoryCreator,
 
95
            )
 
96
        creator = KernelLikeInventoryCreator(self)
 
97
        return creator.create()
 
98
 
87
99
    def make_many_commit_tree(self, directory_name='.',
88
100
                              hardlink=False):
89
101
        """Create a tree with many commits.
129
141
                   'bzrlib.benchmarks.bench_status',
130
142
                   'bzrlib.benchmarks.bench_transform',
131
143
                   'bzrlib.benchmarks.bench_workingtree',
 
144
                   'bzrlib.benchmarks.bench_xml',
132
145
                   ]
133
146
    suite = TestLoader().loadTestsFromModuleNames(testmod_names) 
134
147