Skip to content

Commit 572f6a6

Browse files
Update stress_nested_shells.ps1
1 parent 53f7558 commit 572f6a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/performance/stress_nested_shells.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
param(
2-
[int]$MaxDepth = 50,
2+
[int]$MaxDepth = 100,
33
[int]$CurrentDepth = 0,
44
[string]$CurrentShell = "powershell"
55
)
@@ -20,6 +20,7 @@ if ($CurrentDepth -ge $MaxDepth) {
2020
Write-Host "Reached depth $CurrentDepth - Running stress test..." -ForegroundColor Green
2121

2222
# Run the measurement
23+
win-witr win-witr.exe
2324
$result = Measure-Command {
2425
& win-witr win-witr.exe | Out-Null
2526
}
@@ -53,4 +54,5 @@ if ($nextShell -eq "cmd") {
5354
$scriptPath = $MyInvocation.MyCommand.Path
5455
& powershell.exe -NoProfile -ExecutionPolicy Bypass -File $scriptPath -MaxDepth $MaxDepth -CurrentDepth $nextDepth -CurrentShell "powershell"
5556
exit $LASTEXITCODE
56-
}
57+
58+
}

0 commit comments

Comments
 (0)