Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

Stars 48
Forks 16
PowerShell Gallery downloads 17,213
Release v3.0.186
Language: C# Updated: 2026-11-04
Command

Set-BenchmarkPolicy

Module
PSPublishModule
Inputs
None

Sets benchmark run policy defaults.

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 Sets

Examples

Example 1

Set-BenchmarkPolicy -CooldownMilliseconds 1

Parameters

-CooldownMilliseconds Int32 optional
Delay between measured samples, in milliseconds.
-Iteration Int32 optionalaliases: Iterations
Measured iteration count.
-MemoryCleanup PowerShellBenchmarkMemoryCleanupMode optional
Managed-memory cleanup performed outside timed operations.
Possible values: BeforeIteration
-Order PowerShellBenchmarkRunOrder optional
Work-item ordering strategy.
Possible values: Sequential, Rotated, Randomized, GroupedRotated
-OutlierMode PowerShellBenchmarkOutlierMode optional
Summary outlier policy.
Possible values: ExcludeMinMax
-RunMode String optional
Run mode label.
-Warmup Int32 optional
Warmup iteration count.

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.