Title: Progress bar can significantly impact cmdlet performance · Issue #2138 · PowerShell/PowerShell · GitHub
Open Graph Title: Progress bar can significantly impact cmdlet performance · Issue #2138 · PowerShell/PowerShell
X Title: Progress bar can significantly impact cmdlet performance · Issue #2138 · PowerShell/PowerShell
Description: Repro Steps : Compare perf of WebClient, BITS and Invoke-WebRequest: Measure-Command { $wc = New-Object System.Net.WebClient; $wc.DownloadFile("https://github.com/dotnet/corefx/archive/master.zip", "C:\Users\crispop\Desktop\master.zip") ...
Open Graph Description: Repro Steps : Compare perf of WebClient, BITS and Invoke-WebRequest: Measure-Command { $wc = New-Object System.Net.WebClient; $wc.DownloadFile("https://github.com/dotnet/corefx/archive/master.zip",...
X Description: Repro Steps : Compare perf of WebClient, BITS and Invoke-WebRequest: Measure-Command { $wc = New-Object System.Net.WebClient; $wc.DownloadFile("https://github.com/dotnet/corefx/archive/master....
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2138
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Progress bar can significantly impact cmdlet performance","articleBody":"Repro Steps :\n\nCompare perf of WebClient, BITS and Invoke-WebRequest:\n\n``` powershell\nMeasure-Command { $wc = New-Object System.Net.WebClient; $wc.DownloadFile(\"https://github.com/dotnet/corefx/archive/master.zip\", \"C:\\Users\\crispop\\Desktop\\master.zip\") }\n\n\nDays : 0\nHours : 0\nMinutes : 0\nSeconds : 3\nMilliseconds : 992\nTicks : 39928426\nTotalDays : 4.62134560185185E-05\nTotalHours : 0.00110912294444444\nTotalMinutes : 0.0665473766666667\nTotalSeconds : 3.9928426\nTotalMilliseconds : 3992.8426\nVs\n\nMeasure-Command { Invoke-WebRequest \"https://github.com/dotnet/corefx/archive/master.zip\" -OutFile \"C:\\Users\\crispop\\Desktop\\master.zip\" }\n\n\nDays : 0\nHours : 0\nMinutes : 0\nSeconds : 50\nMilliseconds : 821\nTicks : 508212825\nTotalDays : 0.000588209288194444\nTotalHours : 0.0141170229166667\nTotalMinutes : 0.847021375\nTotalSeconds : 50.8212825\nTotalMilliseconds : 50821.2825\n\nVs\n\nMeasure-Command { Start-BitsTransfer -Source \"https://github.com/dotnet/corefx/archive/master.zip\" -Destination \"C:\\Users\\crispop\\Desktop\\masterBits2.zip\" }\n\n\nDays : 0\nHours : 0\nMinutes : 0\nSeconds : 4\nMilliseconds : 506\nTicks : 45062594\nTotalDays : 5.21557800925926E-05\nTotalHours : 0.00125173872222222\nTotalMinutes : 0.0751043233333333\nTotalSeconds : 4.5062594\nTotalMilliseconds : 4506.2594\n```\n\nExpected: Transfer speeds don't differ too much (maybe Invoke-WebRequest should be a bit faster than BITS which performs the transfer in background.)\n\nActual: 10x slowdown for Invoke-WebRequest\n","author":{"url":"https://github.com/SteveL-MSFT","@type":"Person","name":"SteveL-MSFT"},"datePublished":"2016-08-30T23:32:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":30},"url":"https://github.com/2138/PowerShell/issues/2138"}
| 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:c53900ae-b21d-53f5-01f4-f8fa8717ca7e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D390:24A400:BB2FFF:FFFFD6:6A555A90 |
| html-safe-nonce | 6a809c52710d8390c39381dd6761db8d8deb0d86685badb8edc00672b793aec9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzkwOjI0QTQwMDpCQjJGRkY6RkZGRkQ2OjZBNTU1QTkwIiwidmlzaXRvcl9pZCI6IjMxMzE0MzU3MzM2MDIzNTk5NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0d83c7b8616cc5356b42d3575a324b26e563e07f6932bb16159dbc7bbfc11294 |
| hovercard-subject-tag | issue:174150720 |
| 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/2138/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6697ef445148a1a5eda0a652515494042b5acae517b7af696131db6402060464/PowerShell/PowerShell/issues/2138 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6697ef445148a1a5eda0a652515494042b5acae517b7af696131db6402060464/PowerShell/PowerShell/issues/2138 |
| og:image:alt | Repro Steps : Compare perf of WebClient, BITS and Invoke-WebRequest: Measure-Command { $wc = New-Object System.Net.WebClient; $wc.DownloadFile("https://github.com/dotnet/corefx/archive/master.zip",... |
| 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 | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 73595e82546ca2415571a2031890ab16ecb3001a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width