~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_commit.py

Late bind to PatienceSequenceMatcher to allow plugin to override.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
 
19
19
from bzrlib.benchmarks import Benchmark
20
 
from bzrlib.transport.memory import MemoryServer
21
 
from bzrlib.transport import get_transport
22
20
 
23
21
 
24
22
class CommitBenchmark(Benchmark):
25
23
 
26
24
    def test_commit_kernel_like_tree(self):
27
25
        """Commit of a fresh import of a clean kernel sized tree."""
28
 
        # uncomment this to run the benchmark with the repository in memory
29
 
        # not disk
30
 
        # self.transport_server = MemoryServer
31
 
        # self.make_kernel_like_tree(self.get_url())
32
26
        self.make_kernel_like_tree()
33
27
        self.run_bzr('add')
34
28
        # on robertc's machine the first sample of this took 59750ms/77682ms
35
 
        # after initial call reduction                       53922ms/73918ms
36
29
        self.time(self.run_bzr, 'commit', '-m', 'first post')