/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_bundle.py

  • Committer: John Arbash Meinel
  • Date: 2006-10-27 21:32:34 UTC
  • mto: This revision was merged to the branch mainline in revision 2101.
  • Revision ID: john@arbash-meinel.com-20061027213234-016c1c2ddd2afcce
Skip the 100x100 bundle benchmarks

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
        self.commit_some_revisions(tree, files[:100], 1, 1)
119
119
        self._time_read_write()
120
120
 
121
 
    def test_some_files_moderate_tree_100_revision(self):
122
 
        os.mkdir("a")
123
 
        tree, files = self.create_with_commits(100, 1, directory_name="a")
124
 
        self.commit_some_revisions(tree, files[:100], 100, 1)
125
 
        self._time_read_write()
126
 
 
127
121
    def test_few_files_big_tree_1_revision(self):
128
122
        os.mkdir("a")
129
123
        tree, files = self.create_with_commits(1000, 1, directory_name="a")
142
136
        self.commit_some_revisions(tree, files[:100], 1, 1)
143
137
        self._time_read_write()
144
138
 
145
 
    def test_some_files_big_tree_100_revision(self):
146
 
        os.mkdir("a")
147
 
        tree, files = self.create_with_commits(1000, 1, directory_name="a")
148
 
        self.commit_some_revisions(tree, files[:100], 100, 1)
149
 
        self._time_read_write()
150
139
 
151
140
 
152
141
class BundleLibraryLevelInstallBenchmark(Benchmark):
193
182
        self.commit_some_revisions(tree, files[:100], 1, 1)
194
183
        self._time_read_write()
195
184
 
196
 
    def test_some_files_moderate_tree_100_revision(self):
197
 
        os.mkdir("a")
198
 
        tree, files = self.create_with_commits(100, 1, directory_name="a")
199
 
        self.commit_some_revisions(tree, files[:100], 100, 1)
200
 
        self._time_read_write()
201
 
 
202
185
    def test_few_files_big_tree_1_revision(self):
203
186
        os.mkdir("a")
204
187
        tree, files = self.create_with_commits(1000, 1, directory_name="a")
217
200
        self.commit_some_revisions(tree, files[:100], 1, 1)
218
201
        self._time_read_write()
219
202
 
220
 
    def test_some_files_big_tree_100_revision(self):
221
 
        os.mkdir("a")
222
 
        tree, files = self.create_with_commits(1000, 1, directory_name="a")
223
 
        self.commit_some_revisions(tree, files[:100], 100, 1)
224
 
        self._time_read_write()
225
 
 
226
203
 
227
204
if __name__ == '__main__':
228
205
    # USE the following if you want to regenerate the above test functions 
232
209
            if bundlefiles > treesize:
233
210
                continue
234
211
            for num_revisions in [1, 100]:
 
212
                if num_revisions == 100 and bundlefiles == 100:
 
213
                    # Skip the 100x100 tests.
 
214
                    continue
235
215
                code = """\
236
216
    def test_%s_files_%s_tree_%s_revision(self):
237
217
        os.mkdir("a")