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.169
Language: C# Updated: 2026-10-17
Command

New-ConfigurationDotNetBenchmarkGate

Module PSPublishModule
Inputs
None
Outputs
PowerForge.DotNetPublishBenchmarkGate

Creates a benchmark gate definition for DotNet publish DSL.

Syntax

New-ConfigurationDotNetBenchmarkGate [-AbsoluteToleranceMs <Double>] [-BaselineMode <Verify|Update>] -BaselinePath <String> [-Enabled <Boolean>] [-FailOnNew <Boolean>] -Id <String> [-Metrics <DotNetPublishBenchmarkMetric[]>] [-OnMissingMetric <Warn|Fail|Skip>] [-OnRegression <Warn|Fail|Skip>] [-RelativeTolerance <Double>] -SourcePath <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Create benchmark gate with metrics

$m = New-ConfigurationDotNetBenchmarkMetric -Name 'storage.ms' -Source JsonPath -Path 'storage.ms'
New-ConfigurationDotNetBenchmarkGate -Id 'storage' -SourcePath 'Artifacts\bench.json' -BaselinePath 'Build\Baselines\storage.json' -Metrics $m

Parameters

-AbsoluteToleranceMs Double optional
Absolute tolerance in milliseconds.
-BaselineMode DotNetPublishBaselineMode optional
Baseline operation mode.
Possible values: Verify, Update
-BaselinePath String required
Baseline file path.
-Enabled Boolean optional
Enables this gate.
-FailOnNew Boolean optional
Fail when new metrics appear.
-Id String required
Gate identifier.
-Metrics DotNetPublishBenchmarkMetric[] optional
Metric extraction rules.
-OnMissingMetric DotNetPublishPolicyMode optional
Policy on missing metrics.
Possible values: Warn, Fail, Skip
-OnRegression DotNetPublishPolicyMode optional
Policy on regression.
Possible values: Warn, Fail, Skip
-RelativeTolerance Double optional
Relative tolerance.
-SourcePath String required
Source benchmark file path.

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.