# New-ConfigurationDotNetBenchmarkGate

Creates a benchmark gate definition for DotNet publish DSL.

Project

PSPublishModule

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

[View on GitHub](https://github.com/EvotecIT/PSPublishModule) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSPublishModule/releases/tag/v3.0.124) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSPublishModule/2.0.27)

Stars **48**

Forks **15**

Open issues **1**

PowerShell Gallery downloads **17,213**

Release **v3.0.195**

Language: C# Updated: 2026-11-25

Command 

**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>]
```

[#](#method-new-configurationdotnetbenchmarkgate-double-dotnetpublishbaselinemode-string-boolean-boolean-string-dotnetpublishbenchmarkmetric-dotnetpublishpolicymode-dotnetpublishpolicymode-double-string)

Parameter set: `All Parameter Sets`

## Examples

### Create benchmark gate with metrics

```powershell
$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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:E1FAB2B3FDB4FF26FAE90F9F291339B872C04D3ECD8EE11D25BEB1C15D6D7885 -->
