~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_log.py

  • Committer: Aaron Bentley
  • Date: 2006-06-17 18:34:24 UTC
  • mto: This revision was merged to the branch mainline in revision 1788.
  • Revision ID: aaron.bentley@utoronto.ca-20060617183424-04ba68139b73c965
Add benchmarks for the log commands

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
            else:
68
68
                raise Exception, "LinesDone not raised"
69
69
        self.time(log_screenful)
 
70
 
 
71
    def test_cmd_log(self):
 
72
        """Canonicalizing paths should be fast.""" 
 
73
        tree = self.make_many_commit_tree()
 
74
        self.time(self.run_bzr, 'log', '-r', '-4..')
 
75
 
 
76
    def test_cmd_log_subprocess(self):
 
77
        """Canonicalizing paths should be fast.""" 
 
78
        tree = self.make_many_commit_tree()
 
79
        self.time(self.run_bzr_subprocess, 'log', '-r', '-4..')