We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c12627e commit 6f9e2d8Copy full SHA for 6f9e2d8
1 file changed
run-benchmark.ps1
@@ -1,15 +1,23 @@
1
param(
2
- [ValidateSet('CommandBenchmark','LargeFetchBenchmark')]
3
- $Benchmark = 'CommandBenchmark'
+ [ValidateSet('CommandBenchmark','ConnectionBenchmark','LargeFetchBenchmark')]
+ $Benchmark = 'CommandBenchmark',
4
+
5
+ [switch]$Disasm,
6
+ [switch]$Profile
7
)
8
9
$ErrorActionPreference = 'Stop'
10
11
$projectFile = '.\src\FirebirdSql.Data.FirebirdClient.Benchmarks\FirebirdSql.Data.FirebirdClient.Benchmarks.csproj'
12
13
+$extraArgs = @()
14
+if ($Disasm) { $extraArgs += '--disasm' }
15
+if ($Profile) { $extraArgs += '--profiler', 'ETW' }
16
17
# Run selected benchmark
18
dotnet run `
19
--project $projectFile `
20
--configuration 'Release' `
21
-- `
- --filter "*$($Benchmark)*"
22
+ --filter "*$($Benchmark)*" `
23
+ @extraArgs
0 commit comments