~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_workingtree.py

  • Committer: Martin Pool
  • Date: 2006-06-20 03:30:14 UTC
  • mfrom: (1793 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1797.
  • Revision ID: mbp@sourcefrog.net-20060620033014-e19ce470e2ce6561
[merge] bzr.dev

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)