/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_cache_utf8.py

  • Committer: Martin Pool
  • Date: 2007-08-20 05:53:39 UTC
  • mfrom: (2727 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2730.
  • Revision ID: mbp@sourcefrog.net-20070820055339-uzei7f7i7jo6tugg
merge trunk

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