~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_commit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-15 05:02:17 UTC
  • mfrom: (1908.2.20 benchmark-caching)
  • Revision ID: pqm@pqm.ubuntu.com-20060815050217-d2df7c83d6c5eeca
(jam) bzr selftest --benchmark --cache-dir=foo will save and re-use setup trees

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        # not disk
30
30
        # self.transport_server = MemoryServer
31
31
        # self.make_kernel_like_tree(self.get_url())
32
 
        self.make_kernel_like_tree()
33
 
        self.run_bzr('add')
 
32
        tree = self.make_kernel_like_added_tree()
34
33
        # on robertc's machine the first sample of this took 59750ms/77682ms
35
34
        # after initial call reduction                       53922ms/73918ms
36
35
        self.time(self.run_bzr, 'commit', '-m', 'first post')
 
36
 
 
37
    def test_partial_commit_kernel_like_tree(self):
 
38
        """Commit of 1/8th of a fresh import of a clean kernel sized tree."""
 
39
        tree = self.make_kernel_like_added_tree()
 
40
        self.time(self.run_bzr, 'commit', '-m', 'first post', '1')