~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_cache_utf8.py

Merge bzr.dev

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()