~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_sftp.py

  • Committer: Aaron Bentley
  • Date: 2007-06-21 23:43:17 UTC
  • mto: (2520.5.2 bzr.mpbundle)
  • mto: This revision was merged to the branch mainline in revision 2631.
  • Revision ID: abentley@panoramicfeedback.com-20070621234317-5w3h8h36oe90sups
Implement new merge directive format

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
"""Tests for bzr performance over SFTP"""
18
18
 
39
39
        if not paramiko_loaded:
40
40
            raise TestSkipped('you must have paramiko to run this test')
41
41
        test_sftp_transport.set_test_transport_to_sftp(self)
42
 
 
 
42
         
43
43
    def test_branch(self):
44
44
        os.mkdir("a")
45
45
        tree, files = self.create_with_commits(100, 100, "a")
56
56
 
57
57
    def test_pull_1(self):
58
58
        self.create_commit_and_pull(1)
59
 
 
 
59
        
60
60
    def test_pull_10(self):
61
61
        self.create_commit_and_pull(10)
62
62
 
93
93
 
94
94
 
95
95
class SFTPSlowSocketBenchmark(SFTPBenchmark):
96
 
    """Benchmarks of SFTP performance with a 30ms delay per roundtrip."""
97
 
 
98
96
    def setUp(self):
99
97
        super(SFTPSlowSocketBenchmark, self).setUp()
100
98
        self.get_server().add_latency = 0.03