Can we Make PowerShell… Blazingly Fast?!
summary
Compares concrete benchmarks: bubble sort in Go vs PowerShell (Go wins at 1k ~5×, at 10k ~117 ms vs 7.7 s), a compiled C cmdlet 10× faster than PowerShell, Measure-Command with a TimeSpan diff drives numbers, Get-Content versus System.IO.File shows raw file reads ~24× faster, ArrayList vs += array replaces seconds with milliseconds, ForEach/Where magic methods beat pipeline variants, and Start-ThreadJob can beat Start-Job but parallel overhead often makes it slower for short tasks — tools, exact timings, and when each approach actually works.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 3:14PowerShell vs compiled languages
- 6:47Bubble sort vs Go
- 12:22ForEach-Object comparison
- 18:09Where-Object magic methods
- 23:40Arrays vs ArrayList vs Generic List
- 32:33Functions versus commandlets in PowerShell
- 36:29Native vs .NET objects
- 39:39Jobs vs thread jobs
- 44:02Hash tables vs PS objects
- 45:07Summary
related talks
44m99 Problems, but Slow PowerShell Ain't One!
01h 16mLevel Up Your PowerShell: Essential Tips, Tricks, and Techniques
51mDon't do that, do this instead: PowerShell worst practices and..
40mCode Writing Code, say what now! Meta Programming and PowerShell
01h 37mMore Game Breaking PowerShell
46mPSCustomObject[] vs Hashtables: The ultimate object smackdown
01h 11mWriting your own CLI tools with PowerShell: A case study of...
43mPowerShell Tooling
