# ST-COUNT-01 — carga count-api (Windows). param( [string]$BaseUrl = "http://127.0.0.1:8189", [string]$Profile = "shared8g", [int]$Duration = 0, [double]$Rate = 0, [int]$MaxWorkers = 0 ) $Root = Resolve-Path (Join-Path $PSScriptRoot "..\..\..") $py = Join-Path $Root "docs\plan_pruebas\scripts\st_count_01_bench.py" $argsList = @("--base-url", $BaseUrl, "--profile", $Profile) if ($Duration -gt 0) { $argsList += @("--duration", "$Duration") } if ($Rate -gt 0) { $argsList += @("--rate", "$Rate") } if ($MaxWorkers -gt 0) { $argsList += @("--max-workers", "$MaxWorkers") } Write-Host "ST-COUNT-01 → python $py $($argsList -join ' ')" python $py @argsList exit $LASTEXITCODE