Evotec

Project

PSPublishModule

PSPublishModule is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 43
Forks 13
Open issues 1
PowerShell Gallery downloads 13,876
Release v3.0.3
Language: C# Updated: 2026-04-14

API Reference

Cmdlet

New-ConfigurationDotNetBenchmarkGate

Namespace PSPublishModule
Inputs
None
Outputs
PowerForge.DotNetPublishBenchmarkGate

Creates a benchmark gate definition for DotNet publish DSL.

Remarks

Creates a benchmark gate definition for DotNet publish DSL.

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
        

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

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

Parameters

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

Outputs

PowerForge.DotNetPublishBenchmarkGate