- Messlaeufe rechnen nur Minuten (LBR 2000 Haende 57 CPU-min, 6-max 20 000 Deals 15-18 CPU-min); die 10 h der Nacht 15./16.11. waren ein Stillstand aller Idle-Laeufe (01:19-11:20), keine Rechnung. MULTIWAY=voll kostet +0-4 %, nicht 4x. - TrSolver: Showdown mit Rake ohne Allokation (show_raked_into). - Equity: Gegner-Kombos als flache [Card; 2]-Liste (combo_list, VillainRange::Pairs). - LBR 1,18x (Fingerabdruck ea0779c77e255f95, 28 598 Antworten, Dump byte-gleich), 6-max 1,13x / 1,17x mit MULTIWAY=voll (md5 aller Bloecke = Queue-Binary). - Profiler ohne Adminrechte: messung/perf/werkzeug/stichprobe.py; Bericht messung/perf/BERICHT.md (GPU: nein; Statistik: Fruehstopp auch fuer Gewinner). - messung_perf/rate nach messung/perf/rate (Ordner des Live-Stands). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
1.1 KiB
PowerShell
18 lines
1.1 KiB
PowerShell
# Timed run: lauf2.ps1 <exe> <envfile> <cwd> <args...>; POKERBENCH_THREADS=1 unless set in envfile, Idle; prints wall and CPU s.
|
|
param([string]$exe, [string]$envfile, [string]$cwd, [Parameter(ValueFromRemainingArguments=$true)][string[]]$rest)
|
|
$psi = New-Object System.Diagnostics.ProcessStartInfo
|
|
$psi.FileName = $exe
|
|
$psi.Arguments = ($rest | ForEach-Object { "`"$_`"" }) -join ' '
|
|
$psi.WorkingDirectory = $cwd
|
|
$psi.UseShellExecute = $false
|
|
$psi.RedirectStandardError = $true
|
|
$psi.RedirectStandardOutput = $true
|
|
$psi.EnvironmentVariables["POKERBENCH_THREADS"] = "1"
|
|
if ($envfile) { foreach ($kv in ((Get-Content -Raw $envfile).Trim() -split ';')) { if ($kv -match '^([^=]+)=(.*)$') { $psi.EnvironmentVariables[$matches[1]] = $matches[2] } } }
|
|
$t = [Diagnostics.Stopwatch]::StartNew()
|
|
$p = [Diagnostics.Process]::Start($psi)
|
|
$p.PriorityClass = 'Idle'
|
|
$err = $p.StandardError.ReadToEndAsync(); $o = $p.StandardOutput.ReadToEnd(); $p.WaitForExit()
|
|
"wall {0:N1} s cpu {1:N1} s exit {2}" -f $t.Elapsed.TotalSeconds, $p.TotalProcessorTime.TotalSeconds, $p.ExitCode
|
|
$err.Result | Select-Object -Last 3
|