Has anyone done a performance test on either of these for SSH? From what I have read, subprocess seems to perform better
For further actions, you may consider blocking this person and/or reporting abuse
Has anyone done a performance test on either of these for SSH? From what I have read, subprocess seems to perform better
For further actions, you may consider blocking this person and/or reporting abuse
David Haley -
Hakeem Abbas -
MyExamCloud -
Emmanuel Kariithi -
Top comments (2)
I think you want to compare the use of
subprocess
calling thessh
command, right? In that case, the performance degradation makes all the sense. Why? If you go to the official Paramiko's website it says:So, it means
Paramiko
is implemented in pure Python andssh
in pureC
. So,ssh
performance will be better than the one inParamiko
.But, why should I use
Paramiko
? BecauseParamiko
:ssh
/sftp
/... session:We can say it is more... Python friendly :).
Yeah I was thinking about the sftp since I need to push a file. I'd have to implement both, which would require more resources. Subprocess I think is better for ssh strictly speaking.