~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_bench.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-10 06:14:23 UTC
  • mfrom: (1755.3.12 reduce-chmod)
  • Revision ID: pqm@pqm.ubuntu.com-20060810061423-3ae5999a70b60211
(robertc,jam) tweak Transport.append and AtomicFile so put and append are cheaper

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        """Making a kernel sized tree should be ~ 5seconds on modern disk.""" 
26
26
        # on roberts machine: this originally took:  7372ms/ 7479ms
27
27
        # with the LocalTransport._abspath call:     3730ms/ 3778ms
 
28
        # with AtomicFile tuning:                    2888ms/ 2926ms
 
29
        # switching to transport.append:             1468ms/ 2849ms
28
30
        self.time(self.make_kernel_like_tree)