~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_dirstate.py

  • Committer: Vincent Ladeuil
  • Date: 2009-06-22 12:52:39 UTC
  • mto: (4471.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4472.
  • Revision ID: v.ladeuil+lp@free.fr-20090622125239-kabo9smxt9c3vnir
Use a consistent scheme for naming pyrex source files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
 
208
208
    def test__read_dirblocks_20k_tree_0_parents_c(self):
209
209
        self.requireFeature(CompiledDirstateHelpersFeature)
210
 
        from bzrlib._dirstate_helpers_c import _read_dirblocks_c
 
210
        from bzrlib._dirstate_helpers_pyx import _read_dirblocks_c
211
211
        state = self.build_20k_dirstate()
212
212
        state.lock_read()
213
213
        try:
232
232
 
233
233
    def test__read_dirblocks_20k_tree_1_parent_c(self):
234
234
        self.requireFeature(CompiledDirstateHelpersFeature)
235
 
        from bzrlib._dirstate_helpers_c import _read_dirblocks_c
 
235
        from bzrlib._dirstate_helpers_pyx import _read_dirblocks_c
236
236
        state = self.build_20k_dirstate_with_parents(1)
237
237
        state.lock_read()
238
238
        try:
257
257
 
258
258
    def test__read_dirblocks_20k_tree_2_parents_c(self):
259
259
        self.requireFeature(CompiledDirstateHelpersFeature)
260
 
        from bzrlib._dirstate_helpers_c import _read_dirblocks_c
 
260
        from bzrlib._dirstate_helpers_pyx import _read_dirblocks_c
261
261
        state = self.build_20k_dirstate_with_parents(2)
262
262
        state.lock_read()
263
263
        try:
338
338
 
339
339
    def test_bisect_dirblock_c(self):
340
340
        self.requireFeature(CompiledDirstateHelpersFeature)
341
 
        from bzrlib._dirstate_helpers_c import bisect_dirblock_c
 
341
        from bzrlib._dirstate_helpers_pyx import bisect_dirblock_c
342
342
        state = self.build_10k_dirstate_dirs()
343
343
        state.lock_read()
344
344
        try:
419
419
        self.compareAllPaths(cmp_by_dirs_py,
420
420
                             [(3, 1), (3, 1), (3, 1), (3, 2)])
421
421
 
422
 
    def test_cmp_by_dirs_c(self):
 
422
    def test_cmp_by_dirs_pyrex(self):
423
423
        self.requireFeature(CompiledDirstateHelpersFeature)
424
 
        from bzrlib._dirstate_helpers_c import cmp_by_dirs_c
 
424
        from bzrlib._dirstate_helpers_pyx import cmp_by_dirs_c
425
425
        self.compareAllPaths(cmp_by_dirs_c,
426
426
                             [(3, 1), (3, 1), (3, 1), (3, 2)])