~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_cache_utf8.py

  • Committer: John Arbash Meinel
  • Date: 2007-04-09 22:11:22 UTC
  • mto: This revision was merged to the branch mainline in revision 2566.
  • Revision ID: john@arbash-meinel.com-20070409221122-qh66j4pk3kqxjn9c
Cleanup bzrlib/benchmarks/* so that everything at least has a valid doc string.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
 
37
37
class EncodingBenchmark(Benchmark):
 
38
    """Benchmark the time to encode strings."""
38
39
 
39
40
    def setUp(self):
40
41
        super(EncodingBenchmark, self).setUp()
134
135
                     unicode("%07d" % x) for x in xrange(500000)]
135
136
        self.time(self.encode_cached_multi, revisions, 1)
136
137
 
 
138
 
137
139
class DecodingBenchmarks(Benchmark):
 
140
    """Benchmark the time to decode strings."""
138
141
 
139
142
    def setUp(self):
140
143
        super(DecodingBenchmarks, self).setUp()