~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: 2009-02-23 15:29:35 UTC
  • mfrom: (3943.7.7 bzr.code_style_cleanup)
  • mto: This revision was merged to the branch mainline in revision 4033.
  • Revision ID: john@arbash-meinel.com-20090223152935-oel9m92mwcc6nb4h
Merge the removal of all trailing whitespace, and resolve conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    """Benchmark creating benchmark trees."""
33
33
 
34
34
    def test_make_kernel_like_tree(self):
35
 
        """Making a kernel sized tree should be ~ 5seconds on modern disk.""" 
 
35
        """Making a kernel sized tree should be ~ 5seconds on modern disk."""
36
36
        # on roberts machine: this originally took:  7372ms/ 7479ms
37
37
        # with the LocalTransport._abspath call:     3730ms/ 3778ms
38
38
        # with AtomicFile tuning:                    2888ms/ 2926ms
55
55
        self.time(creator.create, root='foo')
56
56
 
57
57
    def test_04_make_kernel_like_added_tree(self):
58
 
        """Time the second creation of a kernel like added tree 
 
58
        """Time the second creation of a kernel like added tree
59
59
        (this should be a clone)
60
60
        """
61
61
        # make sure kernel_like_added_tree is cached
73
73
        self.time(creator.create, root='foo')
74
74
 
75
75
    def test_06_make_kernel_like_committed_tree(self):
76
 
        """Time the second creation of a committed kernel like tree 
 
76
        """Time the second creation of a committed kernel like tree
77
77
        (this should be a clone)
78
78
        """
79
79
        creator = KernelLikeCommittedTreeCreator(self,
86
86
        self.time(creator.create, root='bar')
87
87
 
88
88
    def test_07_make_kernel_like_committed_tree_hardlink(self):
89
 
        """Time the creation of a committed kernel like tree 
 
89
        """Time the creation of a committed kernel like tree
90
90
        (this should also hardlink the .bzr/ directory)
91
91
        """
92
92
        creator = KernelLikeCommittedTreeCreator(self,