fix(test_framework): pass --tps -1 to server for uncapped headless speed
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
BIN
Binary file not shown.
@@ -31,7 +31,9 @@ const
|
||||
|
||||
let wallsbotDir = sampleBotsDir / "Walls"
|
||||
|
||||
let r = runBattle(@[snnbotDir, wallsbotDir], rounds = 10)
|
||||
const ROUNDS = 20
|
||||
|
||||
let r = runBattle(@[snnbotDir, wallsbotDir], rounds = ROUNDS)
|
||||
|
||||
# Per-round stats
|
||||
echo "=== Per-round results ==="
|
||||
@@ -53,12 +55,12 @@ for rnd in r.rounds:
|
||||
|
||||
# Summary
|
||||
echo ""
|
||||
echo "=== Summary (10 rounds) ==="
|
||||
echo fmt"=== Summary ({ROUNDS} rounds) ==="
|
||||
var snnFinal, wallsFinal: BotResult
|
||||
for b in r.results:
|
||||
if b.name == "SNNBot": snnFinal = b
|
||||
if b.name == "Walls (Nim)": wallsFinal = b
|
||||
|
||||
echo fmt"SNNBot : wins={snnWins}/10 totalScore={snnFinal.totalScore} survivalRounds={snnFinal.survivalCount} firstPlaces={snnFinal.firstPlaces}"
|
||||
echo fmt"Walls : wins={wallsWins}/10 totalScore={wallsFinal.totalScore} survivalRounds={wallsFinal.survivalCount} firstPlaces={wallsFinal.firstPlaces}"
|
||||
echo fmt"Win rate : {snnWins * 100 div 10}%"
|
||||
echo fmt"SNNBot : wins={snnWins}/{ROUNDS} totalScore={snnFinal.totalScore} survivalRounds={snnFinal.survivalCount} firstPlaces={snnFinal.firstPlaces}"
|
||||
echo fmt"Walls : wins={wallsWins}/{ROUNDS} totalScore={wallsFinal.totalScore} survivalRounds={wallsFinal.survivalCount} firstPlaces={wallsFinal.firstPlaces}"
|
||||
echo fmt"Win rate : {snnWins * 100 div ROUNDS}%"
|
||||
|
||||
Reference in New Issue
Block a user