-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreSize-MultipleWeeksWG-RemotingPSRP issues with any transport layerPSRP issues with any transport layer
Description
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.1733Name 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-g9c9b56d22f81c449893cc4a93ef2b9075cdcf43ccc @PaulHigin
Metadata
Metadata
Assignees
Labels
Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreSize-MultipleWeeksWG-RemotingPSRP issues with any transport layerPSRP issues with any transport layer