benchmark of multiple different possible representations of a 2D board in elixir
MIT License
A benchmark of different possible implementations of a 2D game board in elixir. The current benchmark is specifically for the board size 9x9.
What is a board implementation? See the Board
behaviour - creating a new board, get(x, y)
and set(x, y)
.
What is benchmarked?
The benchmarking code itself is in benchmark.exs.
Fun. No concrete use case at the moment other than looking at performance of different data structures in these circumstances. Additionally, this happened to have been one of the first questions I asked the elixir community.
Have another implementation? Great! Add it to lib/board/
with a name describing the data structure, adopt the Board
behaviour then add the module name to the module list in test/board_test.exs
and benchmark.exs
. Done! (if the tests pass and the benchmark runs of course)
Run Time
Comparison
Memory Usage
Run Time
Comparison
Memory Usage
Run Time
Comparison
Run Time
Comparison
Run Time
Comparison
Run Time
Comparison
Run Time
Comparison
Run Time
Comparison