sugyan / yasai

Yet Another Shogi library, for AI development
GNU General Public License v3.0
25 stars 4 forks source link

Bit manipulation attacktable #13

Closed sugyan closed 2 years ago

sugyan commented 2 years ago

benchmark results of main branch:

test movegen::bench_legal_moves_from_default ... bench:         928 ns/iter (+/- 35)
test movegen::bench_legal_moves_maximum      ... bench:       3,410 ns/iter (+/- 124)

test perft::bench_perft_3_from_maximum_moves ... bench: 252,004,938 ns/iter (+/- 14,672,824)
test perft::bench_perft_5_from_default       ... bench: 247,260,489 ns/iter (+/- 5,211,417)
sugyan commented 2 years ago
test movegen::bench_legal_moves_from_default ... bench:         986 ns/iter (+/- 47)
test movegen::bench_legal_moves_maximum      ... bench:       3,613 ns/iter (+/- 144)

test perft::bench_perft_3_from_maximum_moves ... bench: 279,941,339 ns/iter (+/- 12,540,981)
test perft::bench_perft_5_from_default       ... bench: 329,236,070 ns/iter (+/- 10,148,503)
sugyan commented 2 years ago
test movegen::bench_legal_moves_from_default ... bench:       1,027 ns/iter (+/- 90)
test movegen::bench_legal_moves_maximum      ... bench:       3,602 ns/iter (+/- 134)

test perft::bench_perft_3_from_maximum_moves ... bench: 260,006,997 ns/iter (+/- 15,727,358)
test perft::bench_perft_5_from_default       ... bench: 299,135,871 ns/iter (+/- 6,377,097)