~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_bench.py

  • Committer: Robert Collins
  • Date: 2006-06-09 11:05:14 UTC
  • mto: This revision was merged to the branch mainline in revision 1912.
  • Revision ID: robertc@robertcollins.net-20060609110514-f384a18e6be3b4fa
Tune the time to build our kernel_like tree : make LocalTransport.put faster, AtomicFile faster, LocalTransport.append faster.

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)