Replies: 1 comment 1 reply
-
How did you set the compile options? If you do not specify the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was playing with the library and noticed an absurd difference between the execution time in the code in rust and in the desktop.
Could you help me understand why?
CODE
OUTPUT:
Final pot: 22
Final effective stack: 15
Memory usage without compression: 0.25GB
[[Check, Check, Bet(10)], [Check, Check, Bet(10), Call, Bet(5)], [Check, Check, Bet(10), Call, Bet(7)], [Check, Check, Bet(10), Call, Bet(11)], [Check, Check, Bet(10), Call, Bet(14)], [Check, Check, Bet(10), Call, AllIn(15)]]
iteration: 40 / 1000 (exploitability = 3.7834e-3)
Exploitability: 0.00
Execution Time: 40.0114349s
X X R10 C
available_actions: [Check]
Perfomed a Check
X X R10 C
available_actions: [Check]
Perfomed a Check
X X R10 C
TURN dealt a 36
available_actions: [Check, Bet(10)]
Perfomed a Bet(10)
X X R10 C
available_actions: [Fold, Call]
Perfomed a Call
RIVER dealt a 47
GEN
OOP
X - > X - > R10 - > C - >
GEN Possibles Actions: [Check, Bet(5), Bet(7), Bet(11), Bet(14), AllIn(15)]
actions: 6, ev: 966, cards: 966, strategy: 5796, expected_values_detail: 5796
2sJs | EV: 19.824 | Strategy: Check | chance: 0.000 | ev: 17.482 |
2sJs | EV: 19.824 | Strategy: Bet(5) | chance: 0.004 | ev: 19.427 |
2sJs | EV: 19.824 | Strategy: Bet(7) | chance: 0.046 | ev: 19.783 |
2sJs | EV: 19.824 | Strategy: Bet(11) | chance: 0.889 | ev: 19.846 |
2sJs | EV: 19.824 | Strategy: Bet(14) | chance: 0.019 | ev: 19.678 |
2sJs | EV: 19.824 | Strategy: AllIn(15) | chance: 0.042 | ev: 19.509 |
It takes 40s to run the code, but in Desktop Postflop with the same configurations it take only 1.27s. Why this difference?
Beta Was this translation helpful? Give feedback.
All reactions