~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_bench.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-07 20:42:15 UTC
  • mto: (1908.4.6 commit-perf)
  • mto: This revision was merged to the branch mainline in revision 1923.
  • Revision ID: john@arbash-meinel.com-20060807204215-91925a46be1a4001
Support caching a committed kernel-like tree, and mark hardlinked trees as readonly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
                  hardlink_working=True)
36
36
 
37
37
    def test_03_make_kernel_like_added_tree(self):
38
 
        """Test the first creation of a kernel like added tree"""
 
38
        """Time the first creation of a kernel like added tree"""
39
39
        # This may not be an accurate test, in the case that the cached entry
40
40
        # has already been created
41
41
        self.time(self.make_kernel_like_added_tree, root='foo')
42
42
 
43
43
    def test_04_make_kernel_like_added_tree(self):
44
 
        """Test the second creation of a kernel like added tree 
 
44
        """Time the second creation of a kernel like added tree 
45
45
        (this should be a clone)
46
46
        """
47
47
        # Call make_kernel_like_added_tree to make sure it is cached
48
48
        self.make_kernel_like_added_tree(root='foo')
49
49
        self.time(self.make_kernel_like_added_tree, root='bar')
50
50
 
 
51
    def test_05_make_kernel_like_committed_tree(self):
 
52
        """Time the first creation of a committed kernel like tree"""
 
53
        # This may not be an accurate test, in the case that the cached entry
 
54
        # has already been created
 
55
        self.time(self.make_kernel_like_committed_tree, root='foo')
 
56
 
 
57
    def test_06_make_kernel_like_committed_tree(self):
 
58
        """Time the second creation of a committed kernel like tree 
 
59
        (this should be a clone)
 
60
        """
 
61
        # Call make_kernel_like_committed_tree to make sure it is cached
 
62
        self.make_kernel_like_committed_tree(root='foo')
 
63
        self.time(self.make_kernel_like_committed_tree, root='bar')
 
64
 
 
65
    def test_07_make_kernel_like_committed_tree_hardlink(self):
 
66
        """Time the creation of a committed kernel like tree 
 
67
        (this should also hardlink the .bzr/ directory)
 
68
        """
 
69
        # Call make_kernel_like_committed_tree to make sure it is cached
 
70
        self.make_kernel_like_committed_tree(root='foo', hardlink_bzr=True)
 
71
        self.time(self.make_kernel_like_committed_tree, root='bar',
 
72
                    hardlink_bzr=True)
 
73
 
 
74