From: James M. <pro...@sh...> - 2005-10-27 15:02:58
|
Hi, Got a performance issues here... ~/tmp/pyssh $ time ./uptime uptime 01:01:06 up 3 days, 15:01, 5 users, load average: 0.08, 0.10, 0.09 prologic@earth Fri Oct 28 01:01:06 ~ $ real 0m7.736s user 0m0.040s sys 0m0.020s See the attached "uptime" script. Based on your own test code. Here's the same thing with the openssh "ssh" command: ~/tmp/pyssh $ time ssh earth "uptime" 01:02:16 up 3 days, 15:02, 4 users, load average: 0.26, 0.13, 0.10 real 0m1.393s user 0m0.016s sys 0m0.004s Also notice that PySSH seems to open up a pty by default. Should it do this ? (ihmo, I think it shouldn't). Perhaps have in the constructor of Ssh def __init__(self, username, host, port, pty=False): cheers James -- -- -"Problems are Solved by Method" - - James Mills <pro...@sh...> - HomePage: http://shortcircuit.net.au/~prologic/ - Phone: +61732166379 - Mobile: +61404270962 - Skype: therealprologic - MSN: pro...@sh... - ICQ: 98888663 - IRC: irc://shortcircuit.net.au#se Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html |