24
24
class WalkDirsBenchmark(Benchmark):
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
34
for dirblock in osutils.walkdirs('.'):
33
35
if dirblock[0][1] == '.bzr':