~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_commit.py

  • Committer: Marius Kruger
  • Date: 2010-07-10 21:28:56 UTC
  • mto: (5384.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5385.
  • Revision ID: marius.kruger@enerweb.co.za-20100710212856-uq4ji3go0u5se7hx
* Update documentation
* add NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006, 2007, 2009, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
"""Benchmarks of bzr commit."""
18
18
 
20
20
 
21
21
from bzrlib.benchmarks import Benchmark
22
22
from bzrlib.transport.memory import MemoryServer
23
 
from bzrlib.transport import get_transport
24
23
 
25
24
 
26
25
class CommitBenchmark(Benchmark):
76
75
        self.time(self.run_bzr, ['commit', '-m', 'init simple tree'])
77
76
 
78
77
    def test_cmd_commit_subprocess(self):
79
 
        """Text startup and execution of a simple commit.""" 
 
78
        """Text startup and execution of a simple commit."""
80
79
        tree = self.make_simple_tree()
81
80
        self.time(self.run_bzr_subprocess, 'commit', '-m', 'init simple tree')