~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_osutils.py

  • Committer: Jelmer Vernooij
  • Date: 2009-01-28 18:42:55 UTC
  • mto: This revision was merged to the branch mainline in revision 3968.
  • Revision ID: jelmer@samba.org-20090128184255-bdmklkvm83ltk191
Update NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
 
24
24
class WalkDirsBenchmark(Benchmark):
 
25
    """Benchmarks for `bzrlib.osutils.walkdirs`"""
25
26
 
26
27
    def test_walkdirs_kernel_like_tree(self):
27
28
        """Walking a kernel sized tree is fast!(150ms)."""
28
29
        self.make_kernel_like_tree(link_working=True)
29
30
        # on roberts machine: this originally took:  157ms/4177ms
30
31
        # plain os.walk takes 213ms on this tree
 
32
        # with the pyrex readdir module:              77ms/5423ms
31
33
        def dowalk():
32
34
            for dirblock in osutils.walkdirs('.'):
33
35
                if dirblock[0][1] == '.bzr':