Skip to content

Get-Service is noticeably slower on PS7 than on WinPS5.1 #9871

@SteveL-MSFT

Description

@SteveL-MSFT

Steps to reproduce

Measure-Command { 1..100 | % { get-service sshd } }

Expected behavior

About the same time on both PS7 and WinPS 5.1

Actual behavior

WinPS5.1 took 100ms on my machine
PS7 took 532ms on same machine

Environment data

Name                           Value
----                           -----
PSVersion                      7.0.0-preview.1
PSEdition                      Core
GitCommitId                    7.0.0-preview.1
OS                             Microsoft Windows 10.0.18362
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productResolution-No ActivityIssue has had no activity for 6 months or moreWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions