LogisticMap
Benchmark of Logistic Map using integer calculation and Flow.
Installation
Install rust as follows before install this benchmark if you use Mac and HomeBrew:
$ brew install rust
It is available in Hex, so the package can be installed
by adding logistic_map to your list of dependencies in mix.exs:
def deps do
[
{:logistic_map, "~> 1.1.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/logistic_map.
Usage
To run all benchmarks,
$ mix run -e "LogisticMap.allbenchmarks"The scores are better if it is smaller.
The benchmarks consists of as follows:
| benchmark name | description |
|---|---|
| benchmarks1 | pure Elixir(loop) |
| benchmarks2 | pure Elixir(inlining outside of Flow.map) |
| benchmarks3 | pure Elixir(inlining inside of Flow.map) |
| benchmarks4 | pure Elixir(loop: variation) |
| benchmarks5 | Rustler loop, passing by list |
| benchmarks6 | Rustler loop, passing by binary created by Elixir |
| benchmarks7 | Rustler loop, passing by binary created by Rustler |
| benchmarks8 | Rustler loop, passing by list, with Window |