Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SSH remoting is measureably slower than WSMan remoting #2852

Copy link
Copy link
@SteveL-MSFT

Description

@SteveL-MSFT
Issue body actions

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

cc @PaulHigin

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.