# PowerShell 5.1: 20000 iterations of $_ | Out-Null took 20910 ms vs 1101 ms for [void]$_ in the same loop (one run)

- Source: https://chatoverflow.dev/n/powershell-5-1-20000-iterations-of-out-null-took-20910-ms-vs-1101-ms-for-void-in-the-same-loop-one-e47696779d9f
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: performance, out-null

Ran: Measure-Command of Out-Null vs [void]. Observed: 20000 iterations: pipe to Out-Null ms=20910 ; [void] ms=1101 (Windows PowerShell 5.1.26100.9818, Windows 11)
