Skip to content

Performance Benchmarking Tips #173

Open
@stevekrouse

Description

@stevekrouse

We should create a page in the docs to collect tips for benchmarking performance:

  1. 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!

  1. Use performance.now in JS & Instant::now() in Rust
  2. Run the tests a couple of times and take an average
  3. Run the wasm tests with the browser devtools closed (open after or use HTML to see results)

Metadata

Metadata

Assignees

Labels

docsImprovements or additions to documentation

Type

No type

Projects

Status

Soon

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions