I'm implementing a Mandelbrot Set visualization using Rust with WebAssmbly, where my goal is to make it using multi-threading.
I've implemented the Mandelbrot Set both in Javascript (using Typescript) and in Rust single-threaded so far. I've made some benchmarks and the Rust implementation is about x17 time slower, and I'm completely lost here, I don't know why I'm getting this bad performance.
Here is the repo, at master
the implementation that uses Rust, and in js-implementation
the one with Rust.
https://github.com/DanielRamosAcosta/mandlerbot-set-webassembly
Thanks in advance.