You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PSModuleDevelopment/changelog.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# Changelog
2
2
##
3
3
- New: Export-PSMDString - Parses strings from modules using the PSFramework localization feature.
4
+
- Upd: Measure-PSMDCommand - Renamed from Measure-PSMDCommandEx, performance upgrades, adding option for comparing multiple test sets.
4
5
- Upd: Refactored and updated the ModuleDebug component
5
6
- Upd: Renamed Get-PSMDHelpEx to Get-PSMDHelp
6
7
- Upd: Template PSFProject - Adding `-IncludAZ` switch parameter to `vsts-packageFunction.ps1`, making the template include the AZ module as managed dependency.
Measures command performance with consecutive tests.
7
+
8
+
.DESCRIPTION
9
+
This function measures the performance of a scriptblock many consective times.
10
+
11
+
Warning: Running a command repeatedly may not yield reliable information, since repeated executions may benefit from caching or other performance enhancing features, depending on the script content.
12
+
This is best suited for measuring the performance of tasks that will later be run repeatedly as well.
13
+
It also is useful for mitigating local performance fluctuations when comparing performances.
14
+
15
+
PARAMETER ScriptBlock
16
+
The scriptblock whose performance is to be measure.
17
+
18
+
PARAMETER Iterations
19
+
How many times should this performance test be repeated.
20
+
21
+
.PARAMETERTestSet
22
+
Accepts a hashtable, mapping a name to a specific scriptblock to measure.
23
+
This will generate a result grading the performance of the various sets offered.
24
+
25
+
.EXAMPLE
26
+
PS C:\> Measure-PSMDCommand -ScriptBlock { dir \\Server\share } -Iterations 100
27
+
28
+
This tries to use Get-ChildItem on a remote directory 100 consecutive times, then measures performance and reports common performance indicators (Average duration, Maximum, Minimum, Total)
0 commit comments