How to test performance of WASM/Native for the Rust language?

To give some context, what I want to do is take a piece of code in Rust, run it on a Windows machine, then take that piece of code, compile it to WebAssembly and run it in a browser. And then compare the performance between the two - how fast did the code execute (this one primarily), how much RAM, CPU, GPU the computer ate etc.

I'm pretty new to Rust. Any suggestions are much appreciated!

Here's the chapter on profiling from the Rust WASM book.

2 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.