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(); gui = TH.NoGUI(), logger=TH.ByPassLogger()))
return nothing
end
trial = @benchmark do_work!()
show(stdout, MIME("text/plain"), trial)
nothing
BenchmarkTools.Trial: 10000 samples with 1 evaluation per sample.
Range (min … max): 10.921 μs … 2.748 ms ┊ GC (min … max): 0.00% … 97.64%
Time (median): 12.544 μs ┊ GC (median): 0.00%
Time (mean ± σ): 13.301 μs ± 36.956 μs ┊ GC (mean ± σ): 3.85% ± 1.38%
▁▅▇▇█▇▇▅▄▁
▂▃▆███████████▆▄▃▃▃▂▂▂▂▂▂▂▂▂▂▂▁▂▂▁▂▂▂▂▂▂▂▂▂▂▂▁▂▂▂▂▂▂▂▂▂▂▂▂▂ ▃
10.9 μs Histogram: frequency by time 22.4 μs <
Memory estimate: 9.77 KiB, allocs estimate: 115.