~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/__init__.py

  • Committer: Ian Clatworthy
  • Date: 2009-09-09 11:43:10 UTC
  • mto: (4634.37.2 prepare-2.0)
  • mto: This revision was merged to the branch mainline in revision 4689.
  • Revision ID: ian.clatworthy@canonical.com-20090909114310-glw7tv76i5gnx9pt
put rules back in Makefile supporting plain-style docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
"""Benchmark test suite for bzr."""
18
18
 
77
77
        :param link_working: Instead of copying all of the working tree
78
78
            files, just hardlink them to the cached files. Tests can unlink
79
79
            files that they will change.
80
 
        :param link_bzr: Hardlink the .bzr directory. For readonly 
 
80
        :param link_bzr: Hardlink the .bzr directory. For readonly
81
81
            operations this is safe, and shaves off a lot of setup time
82
82
        """
83
83
        from bzrlib.benchmarks.tree_creator.kernel_like import (
104
104
    def make_many_commit_tree(self, directory_name='.',
105
105
                              hardlink=False):
106
106
        """Create a tree with many commits.
107
 
        
108
 
        No file changes are included. Not hardlinking the working tree, 
 
107
 
 
108
        No file changes are included. Not hardlinking the working tree,
109
109
        because there are no working tree files.
110
110
        """
111
111
        from bzrlib.benchmarks.tree_creator.simple_many_commit import (
117
117
    def make_heavily_merged_tree(self, directory_name='.',
118
118
                                 hardlink=False):
119
119
        """Create a tree in which almost every commit is a merge.
120
 
       
121
 
        No file changes are included.  This produces two trees, 
 
120
 
 
121
        No file changes are included.  This produces two trees,
122
122
        one of which is returned.  Except for the first commit, every
123
123
        commit in its revision-history is a merge another commit in the other
124
 
        tree.  Not hardlinking the working tree, because there are no working 
 
124
        tree.  Not hardlinking the working tree, because there are no working
125
125
        tree files.
126
126
        """
127
127
        from bzrlib.benchmarks.tree_creator.heavily_merged import (
185
185
                   'bzrlib.benchmarks.bench_inventory',
186
186
                   'bzrlib.benchmarks.bench_knit',
187
187
                   'bzrlib.benchmarks.bench_log',
 
188
                   'bzrlib.benchmarks.bench_pack',
188
189
                   'bzrlib.benchmarks.bench_osutils',
189
190
                   'bzrlib.benchmarks.bench_rocks',
190
191
                   'bzrlib.benchmarks.bench_startup',
191
192
                   'bzrlib.benchmarks.bench_status',
 
193
                   'bzrlib.benchmarks.bench_tags',
192
194
                   'bzrlib.benchmarks.bench_transform',
193
195
                   'bzrlib.benchmarks.bench_workingtree',
194
196
                   'bzrlib.benchmarks.bench_sftp',
195
197
                   'bzrlib.benchmarks.bench_xml',
196
198
                   ]
197
 
    suite = TestLoader().loadTestsFromModuleNames(testmod_names) 
 
199
    suite = TestLoader().loadTestsFromModuleNames(testmod_names)
198
200
 
199
201
    # Load any benchmarks from plugins
200
202
    for name, plugin in _mod_plugin.plugins().items():