<分区>
我正在使用 Rust 和 WebAssmbly 实现 Mandelbrot 集可视化,我的目标是使用多线程实现它。
到目前为止,我已经在 Javascript(使用 Typescript)和 Rust 单线程中实现了 Mandelbrot 集。我做了一些基准测试,Rust 实现大约慢了 x17 倍,我完全迷失在这里,我不知道为什么我会得到这么差的性能。
这是 repo,在 master
中使用 Rust 的实现,在 js-implementation
中使用 Rust 的实现。
https://github.com/DanielRamosAcosta/mandlerbot-set-webassembly
提前致谢。