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

  • Committer: John Arbash Meinel
  • Date: 2006-08-15 03:19:49 UTC
  • mto: This revision was merged to the branch mainline in revision 1923.
  • Revision ID: john@arbash-meinel.com-20060815031949-3a28a6d6a9388586
I think it is actually better as simple helper functions on Benchmark

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
 
19
19
from bzrlib.benchmarks import Benchmark
20
 
from bzrlib.benchmarks.tree_creator.kernel_like import (
21
 
    make_kernel_like_added_tree,
22
 
    make_kernel_like_committed_tree,
23
 
    )
24
20
 
25
21
 
26
22
class StatusBenchmark(Benchmark):
30
26
        
31
27
        This should be bearable (<2secs) fast.
32
28
        """ 
33
 
        make_kernel_like_added_tree(self, '.')
 
29
        self.make_kernel_like_added_tree()
34
30
        # on robertc's machine the first sample of this took 1687ms/15994ms
35
31
        self.time(self.run_bzr, 'status')
36
32
 
37
33
    def test_no_changes_known_kernel_like_tree(self):
38
34
        """Status in a kernel sized tree with no ignored, unknowns, or added.""" 
39
 
        make_kernel_like_committed_tree(self, '.', link_bzr=True)
 
35
        self.make_kernel_like_committed_tree(link_bzr=True)
40
36
        self.time(self.run_bzr, 'status')