Title: `Get-Service` is noticeably slower on PS7 than on WinPS5.1 · Issue #9871 · PowerShell/PowerShell · GitHub
Open Graph Title: `Get-Service` is noticeably slower on PS7 than on WinPS5.1 · Issue #9871 · PowerShell/PowerShell
X Title: `Get-Service` is noticeably slower on PS7 than on WinPS5.1 · Issue #9871 · PowerShell/PowerShell
Description: 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...
Open Graph Description: 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 532...
X Description: 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 532...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9871
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Get-Service` is noticeably slower on PS7 than on WinPS5.1","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\nWindows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nThis repository is **ONLY** for PowerShell Core 6 issues.\r\n\r\n- Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6?view=powershell-6).\r\n\r\n-->\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\nMeasure-Command { 1..100 | % { get-service sshd } }\r\n```\r\n\r\n# Expected behavior\r\n\r\nAbout the same time on both PS7 and WinPS 5.1\r\n\r\n# Actual behavior\r\n\r\nWinPS5.1 took 100ms on my machine\r\nPS7 took 532ms on same machine\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 7.0.0-preview.1\r\nPSEdition Core\r\nGitCommitId 7.0.0-preview.1\r\nOS Microsoft Windows 10.0.18362\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n","author":{"url":"https://github.com/SteveL-MSFT","@type":"Person","name":"SteveL-MSFT"},"datePublished":"2019-06-11T18:33:02Z","url":"https://github.com/PowerShell/PowerShell/issues/9871"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6eb36340-8454-9221-4bcc-50b4bef58d00 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A32:35C83D:9DEFF0:E2A118:6AFD9EC5 |
| html-safe-nonce | 26fd1bca021a491fddafd9498af628aaf54dd4b3c20b40c5170288a18eeec737 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTMyOjM1QzgzRDo5REVGRjA6RTJBMTE4OjZBRkQ5RUM1IiwidmlzaXRvcl9pZCI6IjczNDgzNzE3NTAyNDcwNDY4NTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7336eae26c092ba8f0efc904a0f225667eff8d63039e7351a97aa40d101b0065 |
| hovercard-subject-tag | issue:454841405 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/9871/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5ab106d3a070d9e5a92c5dcb4ba082fc10dd743aac358b9ed877e056bd2146e6/PowerShell/PowerShell/issues/9871 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5ab106d3a070d9e5a92c5dcb4ba082fc10dd743aac358b9ed877e056bd2146e6/PowerShell/PowerShell/issues/9871 |
| og:image:alt | 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 532... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SteveL-MSFT |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width