API Reference
Command
Set-BenchmarkPolicy
Sets benchmark run policy defaults.
Remarks
Sets benchmark run policy defaults.
Examples
EXAMPLE 1
Set-BenchmarkPolicy -CooldownMilliseconds 1
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Set-BenchmarkPolicy [-CooldownMilliseconds <Int32>] [-Iteration <Int32>] [-MemoryCleanup <BeforeIteration>] [-Order <Sequential|Rotated|Randomized|GroupedRotated>] [-OutlierMode <ExcludeMinMax>] [-RunMode <String>] [-Warmup <Int32>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- CooldownMilliseconds Int32
- Delay between measured samples, in milliseconds.
- Iteration Int32
- Measured iteration count.
- MemoryCleanup PowerShellBenchmarkMemoryCleanupMode
- Managed-memory cleanup performed outside timed operations.
- Possible values:
BeforeIteration - Order PowerShellBenchmarkRunOrder
- Work-item ordering strategy.
- Possible values:
Sequential,Rotated,Randomized,GroupedRotated - OutlierMode PowerShellBenchmarkOutlierMode
- Summary outlier policy.
- Possible values:
ExcludeMinMax - RunMode String
- Run mode label.
- Warmup Int32
- Warmup iteration count.