效果:
代码:
$Command_1={1..1500|ForEach-Object {"Line: $_" }} $Command_2={1..1500|&{process{"Line: $_"}}} $Command_1,$Command_2|ForEach-Object{(Measure-Command $_).TotalMilliseconds}