[MERGE] is_ignored benchmarks..
Martin Pool
mbp at canonical.com
Wed Jun 14 06:23:08 BST 2006
On 11/06/2006, at 5:33 PM, Robert Collins wrote:
> === modified file 'bzrlib/benchmarks/bench_workingtree.py'
> --- bzrlib/benchmarks/bench_workingtree.py 2006-05-30 04:33:16
> +0000
> +++ bzrlib/benchmarks/bench_workingtree.py 2006-06-11 07:18:19
> +0000
> @@ -43,3 +43,15 @@
> tree.add(root)
> self.time(list, tree.list_files())
>
> + def test_is_ignored_single_call(self):
> + """How long does is_ignored take to initialise and check one
> file."""
> + t = self.make_branch_and_tree('.')
> + self.time(t.is_ignored, "CVS")
> +
> + def test_is_ignored_10824_calls(self):
> + """How long does is_ignored take to initialise and check one
> file."""
> + t = self.make_branch_and_tree('.')
> + def call_is_ignored_10824_not_ignored():
> + for x in xrange(10824):
> + t.is_ignored(str(x))
> + self.time(call_is_ignored_10824_not_ignored)
+1
--
Martin
More information about the bazaar
mailing list