From a34b1ebc074164ddefe2f434e2f11a5c7abd41d0 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 10 Aug 2026 15:57:28 +0200 Subject: adding time to script --- perft.bash | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perft.bash') 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" -- cgit v1.2.3