~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_bench.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-16 22:35:21 UTC
  • mto: This revision was merged to the branch mainline in revision 1942.
  • Revision ID: john@arbash-meinel.com-20060816223521-73357694d4b7df0b
One field was incorrect, need text_sha1 not text_size

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006 by Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
 
# it under the terms of the GNU General Public License as published by
5
 
# the Free Software Foundation; either version 2 of the License, or
6
 
# (at your option) any later version.
 
4
# it under the terms of the GNU General Public License version 2 as published by
 
5
# the Free Software Foundation.
7
6
#
8
7
# This program is distributed in the hope that it will be useful,
9
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
29
28
 
30
29
 
31
30
class MakeKernelLikeTreeBenchmark(Benchmark):
32
 
    """Benchmark creating benchmark trees."""
33
31
 
34
32
    def test_make_kernel_like_tree(self):
35
33
        """Making a kernel sized tree should be ~ 5seconds on modern disk.""" 
36
34
        # on roberts machine: this originally took:  7372ms/ 7479ms
37
35
        # with the LocalTransport._abspath call:     3730ms/ 3778ms
38
36
        # with AtomicFile tuning:                    2888ms/ 2926ms
39
 
        # switching to transport.append_bytes:       1468ms/ 2849ms
 
37
        # switching to transport.append:             1468ms/ 2849ms
40
38
        self.time(self.make_kernel_like_tree)
41
39
 
42
40
    def test_02_make_kernel_like_tree(self):