Title: Get-ChildItem to a file is 2x slower than CMD · Issue #12817 · PowerShell/PowerShell · GitHub
Open Graph Title: Get-ChildItem to a file is 2x slower than CMD · Issue #12817 · PowerShell/PowerShell
X Title: Get-ChildItem to a file is 2x slower than CMD · Issue #12817 · PowerShell/PowerShell
Description: Steps to reproduce (Measure-Command { dir -Recurse C:\rnw | Out-File C:\temp\1.txt }).TotalSeconds takes 15.222019 seconds whereas CMD: C:\temp\timecmd.cmd "dir /s C:\rnw > C:\temp\1.txt" command took 0:0:8.47 (8.47s total) Expected beha...
Open Graph Description: Steps to reproduce (Measure-Command { dir -Recurse C:\rnw | Out-File C:\temp\1.txt }).TotalSeconds takes 15.222019 seconds whereas CMD: C:\temp\timecmd.cmd "dir /s C:\rnw > C:\temp\1.txt" command t...
X Description: Steps to reproduce (Measure-Command { dir -Recurse C:\rnw | Out-File C:\temp\1.txt }).TotalSeconds takes 15.222019 seconds whereas CMD: C:\temp\timecmd.cmd "dir /s C:\rnw > C:\temp\1.txt&qu...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/12817
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-ChildItem to a file is 2x slower than CMD","articleBody":"# Steps to reproduce\r\n\r\n```powershell\r\n(Measure-Command { dir -Recurse C:\\rnw | Out-File C:\\temp\\1.txt }).TotalSeconds\r\n```\r\ntakes 15.222019 seconds\r\nwhereas CMD:\r\n```txt\r\nC:\\temp\\timecmd.cmd \"dir /s C:\\rnw \u003e C:\\temp\\1.txt\"\r\n```\r\ncommand took 0:0:8.47 (8.47s total)\r\n\r\n# Expected behavior\r\nSame performance as CMD.\r\n\r\n# Actual behavior\r\n2x slower than CMD\r\n\r\n# Environment data\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 7.0.1\r\nPSEdition Core\r\nGitCommitId 7.0.1\r\nOS Microsoft Windows 10.0.20133\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/asklar","@type":"Person","name":"asklar"},"datePublished":"2020-05-27T17:44:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/12817/PowerShell/issues/12817"}
| 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:cdc99db9-1297-df95-502b-032f6bc9b135 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99D4:3FC1F4:19477C2:24889E1:6A578DE7 |
| html-safe-nonce | 16e022b5a7b85e89f80c25b15bb65d3a865c17b7a1fe1686cd730b2c3fad97ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUQ0OjNGQzFGNDoxOTQ3N0MyOjI0ODg5RTE6NkE1NzhERTciLCJ2aXNpdG9yX2lkIjoiNzQ0NzA1ODExNTczOTQ4NzcxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cfb0129060af7a98b255bcb79fa3831e0885b0dcb219e600d14b4f61b1babef4 |
| hovercard-subject-tag | issue:625899769 |
| 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/12817/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f3a6157b7c1617f7307960804894de7969e5feb05e37e234b69ac9ffafedf7b0/PowerShell/PowerShell/issues/12817 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f3a6157b7c1617f7307960804894de7969e5feb05e37e234b69ac9ffafedf7b0/PowerShell/PowerShell/issues/12817 |
| og:image:alt | Steps to reproduce (Measure-Command { dir -Recurse C:\rnw | Out-File C:\temp\1.txt }).TotalSeconds takes 15.222019 seconds whereas CMD: C:\temp\timecmd.cmd "dir /s C:\rnw > C:\temp\1.txt" command t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | asklar |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6353e56e94423c9cd5abde7708a859afa36a0c1203c73749055bf6ee6704cd0 |
| 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 | f59ab1c46b638204e2aea09126d089be5dc773b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width