~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_status.py

  • Committer: John Arbash Meinel
  • Date: 2006-10-11 00:23:23 UTC
  • mfrom: (2070 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2071.
  • Revision ID: john@arbash-meinel.com-20061011002323-82ba88c293d7caff
[merge] bzr.dev 2070

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    def test_no_ignored_unknown_kernel_like_tree(self):
25
25
        """Status in a kernel sized tree with no ignored or unknowns.
26
26
        
27
 
        This should be bearable (<2secs) fast.""" 
28
 
        self.make_kernel_like_tree()
29
 
        self.run_bzr('add')
 
27
        This should be bearable (<2secs) fast.
 
28
        """ 
 
29
        self.make_kernel_like_added_tree()
30
30
        # on robertc's machine the first sample of this took 1687ms/15994ms
31
31
        self.time(self.run_bzr, 'status')
32
32
 
33
33
    def test_no_changes_known_kernel_like_tree(self):
34
34
        """Status in a kernel sized tree with no ignored, unknowns, or added.""" 
35
 
        self.make_kernel_like_tree()
36
 
        self.run_bzr('add')
37
 
        self.run_bzr('commit', '-m', 'initial import')
 
35
        self.make_kernel_like_committed_tree(link_bzr=True)
38
36
        self.time(self.run_bzr, 'status')
 
37
 
 
38
    def test_single_file_no_changes_known_kernel_like_tree(self):
 
39
        """Status in a kernel sized tree with no ignored, unknowns, or added
 
40
        of a single file."""
 
41
        self.make_kernel_like_committed_tree()
 
42
        #XXX depends on the filenames generated by make_kernel_like_tree
 
43
        self.time(self.run_bzr, 'status', '7/4/0/16')