Skip to content

Instantly share code, notes, and snippets.

@VertigoRay
VertigoRay / ForEachSpeeds.Tests.ps1
Last active August 22, 2021 15:39
Used Pester to do some speed tests, because the comments on my stackoverflow post (http://stackoverflow.com/a/16175967/615422) peaked my interest.
<#
Invoked the test with the following command, so that I could save the times take the average of each Context:
```posh
Invoke-Pester -OutputFile test.xml -OutputFormat NUnitXml
```
Then I did some math on the results as shown (yes, I use pipelines when not scripting):
```posh