~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-03 20:18:35 UTC
  • mfrom: (1185.82.137 w-changeset)
  • Revision ID: pqm@pqm.ubuntu.com-20060603201835-1c9a1725641ccd24
Implement bundles

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
            tree.add(root)
44
44
        self.time(list, tree.list_files())
45
45
 
46
 
    def test_is_ignored_single_call(self):
47
 
        """How long does is_ignored take to initialise and check one file."""
48
 
        t = self.make_branch_and_tree('.')
49
 
        self.time(t.is_ignored, "CVS")
50
 
        
51
 
    def test_is_ignored_10824_calls(self):
52
 
        """How long does is_ignored take to initialise and check one file."""
53
 
        t = self.make_branch_and_tree('.')
54
 
        def call_is_ignored_10824_not_ignored():
55
 
            for x in xrange(10824):
56
 
                t.is_ignored(str(x))
57
 
        self.time(call_is_ignored_10824_not_ignored)