Performance
Here is a benchmark showcasing the performance of TexasHoldem:
import TexasHoldem as TH
using TexasHoldem
using BenchmarkTools
import Logging
import Random
Random.seed!(1234)
players() = ntuple(i->(Player(TH.FuzzBot(), i)), 4)
function do_work!()
play!(Game(players();logger=TH.ByPassLogger()))
return nothing
end
trial = @benchmark do_work!()
show(stdout, MIME("text/plain"), trial)
BenchmarkTools.Trial: 10000 samples with 1 evaluation.
Range (min … max): 13.800 μs … 3.700 ms ┊ GC (min … max): 0.00% … 97.56%
Time (median): 18.100 μs ┊ GC (median): 0.00%
Time (mean ± σ): 19.292 μs ± 51.799 μs ┊ GC (mean ± σ): 3.71% ± 1.38%
▁ ▁▂▂▁▃█▂▂▃▂▂▁ ▂
▁▁▂▂▃▃▅▅█▇████████████████▆▇▆▆▅▅▄▅▃▄▄▄▃▃▃▃▃▃▂▂▂▂▂▂▂▂▁▁▂▁▁▁▁ ▃
13.8 μs Histogram: frequency by time 26.3 μs <
Memory estimate: 9.98 KiB, allocs estimate: 121.