Calculating a mandelbrot set with multiple languages for benchmarking.
At the moment there are four calculations written in two languages:
- Javscript Recursively. Written in Node.js, using a recursive algorithm.
- Javscript Iteratively. Written in Node.js, using a iterative algorithm.
- Elixir Single. Written in Elixir, without any concurrent calculations.
- Elixir Multi. Written in Elixir, with concurrent calculations.
- Rust. Written in Rust.
Assuming Node, Elixir and Rust are installed, run:
bash run.sh
If you only want to run the scripts of one language:
bash run_js.sh
bash run_ex.sh
bash run_rs.sh
Result files will be generated and placed in results/
.
Parameters can be edited in .envrc
.
index.html
will illustrate the mandelbrot images. Serve with local server, for example:
npx http-server -p 4000
and visit localhost:4000
in your web browser.
Javascript Recursive:
0m8.350s
Javascript Iterative:
0m6.322s
Elixir Single:
0m19.015s
Elixir Multi:
0m11.086s
Rust:
0m0.396s