~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_cache_utf8.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-04-26 21:11:03 UTC
  • mfrom: (2447.1.7 bundle_empty_properties)
  • Revision ID: pqm@pqm.ubuntu.com-20070426211103-h84prqh7a4ad3ez2
(John Arbash Meinel) Fix bug #109613 by teaching Bundle how to properly read/write revision properties with no value.

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."""
39
38
 
40
39
    def setUp(self):
41
40
        super(EncodingBenchmark, self).setUp()
135
134
                     unicode("%07d" % x) for x in xrange(500000)]
136
135
        self.time(self.encode_cached_multi, revisions, 1)
137
136
 
138
 
 
139
137
class DecodingBenchmarks(Benchmark):
140
 
    """Benchmark the time to decode strings."""
141
138
 
142
139
    def setUp(self):
143
140
        super(DecodingBenchmarks, self).setUp()