You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected SSH to be on par or faster than WSMan as we no longer have to deal with SOAP/XML encoding
PS C:\>$script= [scriptblock]::Create("(1..10000) | % { [pscustomobject]@{name=`$_;version=`$PSVersionTable}}")
PS C:\>$ubuntu# running as VM on same client machine
Id Name ComputerName ComputerType State ConfigurationName Availability
----------------------------------------------------------------12 SSH12 slee-ubuntu16a RemoteMachine Opened DefaultShell Available
PS C:\>$ssh
Id Name ComputerName ComputerType State ConfigurationName Availability
----------------------------------------------------------------13 SSH13 slee-thinkpad RemoteMachine Opened DefaultShell Available
PS C:\>$wsman
Id Name ComputerName ComputerType State ConfigurationName Availability
----------------------------------------------------------------14 WinRM14 slee-thinkpad RemoteMachine Opened Microsoft.PowerShell Available
PS C:\> (measure-command {invoke-command-session $ubuntu-scriptblock $script }).totalmilliseconds
9862.1602
PS C:\> (measure-command {invoke-command-session $ssh-scriptblock $script }).totalmilliseconds
8779.3777
PS C:\> (measure-command {invoke-command-session $wsman-scriptblock $script }).totalmilliseconds
5029.1733
Name Value
---------
PSEdition Core
BuildVersion 3.0.0.0
WSManStackVersion 3.0
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
PSRemotingProtocolVersion 2.3
CLRVersion
PSVersion 6.0.0-alpha
SerializationVersion 1.1.0.1
GitCommitId v6.0.0-alpha.13-27-g9c9b56d22f81c449893cc4a93ef2b9075cdcf43c
Expected SSH to be on par or faster than WSMan as we no longer have to deal with SOAP/XML encoding
cc @PaulHigin