~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_add.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-05-19 08:15:16 UTC
  • mfrom: (1714.1.3 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060519081516-cd19bd125a53a4d2
Merge low hanging fruit optimisation of 'bzr add' (Robert Collins, Martin Pool).

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        # 3-4 levels deep. 
28
28
        # we simulate this by three levels of dirs named 0-7, givin 512 dirs,
29
29
        # and 20 files each.
30
 
        # on roberts machine this originally took:    25936ms/32244ms
31
 
        # after combining the regexes for is_ignored: 13477ms/17591ms
 
30
        # on roberts machine this originally took: 25936ms/32244ms
 
31
        # after low hanging fruit                :  9692ms/13911ms
32
32
        self.run_bzr('init')
33
33
        files = []
34
34
        for outer in range(8):