Files
pokerfreak/messung/perf/rate/lauf.ps1
T
mmintelandClaude Opus 5.5 81e8083c0d Perf 16.11.: Wartezeit statt Rechenzeit belegt, Rake-Showdown und Kombo-Listen bit-identisch schneller
- 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>
2026-11-16 13:05:49 +01:00

20 lines
1.1 KiB
PowerShell

# One LBR rate probe: lauf.ps1 <exe> <out> <hands> <env "A=1;B=2"> <cwd>; 1 thread, Idle; prints wall s.
param([string]$exe, [string]$out, [string]$hands, [string]$envfile, [string]$cwd)
$envs = if ($envfile) { (Get-Content -Raw $envfile).Trim() } else { "" }
$psi = New-Object System.Diagnostics.ProcessStartInfo
$psi.FileName = $exe
$psi.Arguments = "`"$out`" $hands"
$psi.WorkingDirectory = $cwd
$psi.UseShellExecute = $false
$psi.RedirectStandardError = $true
$psi.RedirectStandardOutput = $true
$psi.EnvironmentVariables["POKERBENCH_THREADS"] = "1"
foreach ($kv in ($envs -split ';')) { if ($kv -match '^([^=]+)=(.*)$') { $psi.EnvironmentVariables[$matches[1]] = $matches[2] } }
if (Test-Path $out) { Remove-Item $out }
$t = [Diagnostics.Stopwatch]::StartNew()
$p = [Diagnostics.Process]::Start($psi)
$p.PriorityClass = 'Idle'
$err = $p.StandardError.ReadToEndAsync(); $o = $p.StandardOutput.ReadToEnd(); $p.WaitForExit()
"{0} wall {1:N1} s cpu {2:N1} s exit {3}" -f (Split-Path $out -Leaf), $t.Elapsed.TotalSeconds, $p.TotalProcessorTime.TotalSeconds, $p.ExitCode
$o; $err.Result