/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_add.py

  • Committer: Robert Collins
  • Date: 2006-05-16 08:10:13 UTC
  • mto: (1713.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1714.
  • Revision ID: robertc@robertcollins.net-20060516081013-91bc18646c941420
Teach the bzrlib TestCase to report the time take by calls to self.time as benchmark time, allowing granular reporting of time during benchmarks. See bzrlib.benchmarks.bench_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 the setup of this takes 9 seconds and the add 20.
 
30
        # on roberts machine this takes 25936ms/32244ms
31
31
        self.run_bzr('init')
32
32
        files = []
33
33
        for outer in range(8):