~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_checkout.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_committed_tree,
22
 
    )
23
20
 
24
21
 
25
22
class CheckoutBenchmark(Benchmark):
26
23
 
27
24
    def test_build_kernel_like_tree(self):
28
25
        """Checkout of a clean kernel sized tree should be (<10secs)."""
29
 
        make_kernel_like_committed_tree(self, '.', link_bzr=True)
 
26
        self.make_kernel_like_committed_tree(link_bzr=True)
30
27
        self.time(self.run_bzr, 'checkout', '--lightweight', '.', 'acheckout')