Open
Description
We should create a page in the docs to collect tips for benchmarking performance:
- Start by measuring your JS, and confirming that it's slow in a way that Rust/Wasm will be faster in (with rough estimates of how much faster, and a link to a benchmark):
parsing - yes (2.5x faster)
matrix math - yes
generating vertex shaders - yes
dom manipulation - no
When in doubt, ask the Slack if the slowness in your app can be improved by Zaplib before you invest time into writing a port!
- Use
performance.now
in JS &Instant::now()
in Rust - Run the tests a couple of times and take an average
- Run the wasm tests with the browser devtools closed (open after or use HTML to see results)
Metadata
Metadata
Assignees
Type
Projects
Status
Soon