Skip to content

Commit 6f9e2d8

Browse files
committed
Add -Disasm and -Profile flags to run-benchmark.ps1
1 parent c12627e commit 6f9e2d8

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

run-benchmark.ps1

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
param(
2-
[ValidateSet('CommandBenchmark','LargeFetchBenchmark')]
3-
$Benchmark = 'CommandBenchmark'
2+
[ValidateSet('CommandBenchmark','ConnectionBenchmark','LargeFetchBenchmark')]
3+
$Benchmark = 'CommandBenchmark',
4+
5+
[switch]$Disasm,
6+
[switch]$Profile
47
)
58

69
$ErrorActionPreference = 'Stop'
710

811
$projectFile = '.\src\FirebirdSql.Data.FirebirdClient.Benchmarks\FirebirdSql.Data.FirebirdClient.Benchmarks.csproj'
912

13+
$extraArgs = @()
14+
if ($Disasm) { $extraArgs += '--disasm' }
15+
if ($Profile) { $extraArgs += '--profiler', 'ETW' }
16+
1017
# Run selected benchmark
1118
dotnet run `
1219
--project $projectFile `
1320
--configuration 'Release' `
1421
-- `
15-
--filter "*$($Benchmark)*"
22+
--filter "*$($Benchmark)*" `
23+
@extraArgs

0 commit comments

Comments
 (0)