Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions benchmark.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,8 @@ if (-Not [string]::IsNullOrEmpty(${env:GITHUB_SHA})) {
}

& $dotnet run --project $benchmarks --configuration "Release" -- $additionalArgs

if ($LASTEXITCODE -ne 0) {
Write-Error "Benchmarks failed with exit code $LASTEXITCODE."
exit $LASTEXITCODE
}
3 changes: 2 additions & 1 deletion perf/TodoApp.Benchmarks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
}
else
{
BenchmarkRunner.Run<OpenApiBenchmarks>(args: args);
var summary = BenchmarkRunner.Run<OpenApiBenchmarks>(args: args);
return summary.Reports.Any((p) => !p.Success) ? 1 : 0;
}
Loading