aboutsummaryrefslogtreecommitdiff
path: root/perft.bash
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-08-10 15:57:28 +0200
committerAdam <adammegarules1@gmail.com>2026-08-10 15:57:28 +0200
commita34b1ebc074164ddefe2f434e2f11a5c7abd41d0 (patch)
tree929a3c93a3e745adbabcf52cb01bb6533aebb5a2 /perft.bash
parentf246a4ab1f855ab53801c27ebd73d5eb6bd092db (diff)
adding time to script
Diffstat (limited to 'perft.bash')
-rwxr-xr-xperft.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/perft.bash b/perft.bash
index 74e1250..4977bcc 100755
--- a/perft.bash
+++ b/perft.bash
@@ -9,10 +9,13 @@ testPerft() {
result=$(./build/mono "perft" $depth "$fen")
count=$(echo $result | jq -r '.result')
+ took=$(echo $result | jq -r '.ms')
if [ "$count" = "$expected" ]; then
echo "Results match"
+ echo "Took: $took ms"
else
echo "RESULTS DONT MATCH"
+ echo "Took: $took ms"
echo "Depth: $depth"
echo "Fen: $fen"
echo "Expected: $expected"