Closed michalwitwicki closed 2 months ago
Check commit https://github.com/robotframework/SSHLibrary/commit/8e77942557e704dfb13ae9ee6eb1365791999a87
The bottleneck may be here in _read_until
.
self.read_char
reads only a character each loop. And need match every output
. It is really time consuming for long output.
Should use Execute Command
keyword to get the output and check.
@raychenv
Thanks for explanation.
Execute Command
is indeed much faster but still not as fast as paramiko approach.
Thank you for suggestion anyway.
Hi, I have similar (or same) issue as discussed in following tickets: #338, #347, #151 and #203 - basically
Read Until
is slow.I have created setup to compare
Read Until
directly toParamiko
, that comparison is not exactly 1-to-1 but I think it is enough to show the problem.requirements.txt
long_output.sh
long_output.robot
utils.py
This is how I started Robot:
robot -d ./results -v HOST:<ip> -v USERNAME:<user> -v PASSWORD:<pass> long_output.robot
And finally the result of running above:
I am running this from virtual machine with Fedora and machine I am connecting to has CentOS. I am using Python3.
All files to download: shhlib_slow_read_until.zip
Any idea where problem might be?
Thanks, Michał Witwicki