rustwasm / book

The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.75k stars 211 forks source link

Unsure how to test performance on MacOS #73

Open reccanti opened 6 years ago

reccanti commented 6 years ago

Where in the docs did you come across this? In the section on Time-Profiling, the author mentions using the Linux tool perf to test the results of cargo bench.

Describe what about it does not make sense Since I'm using a Mac, I don't have access to the perf tool, and I don't know of any equivalent tools I could use to get similar data.

How could we improve it? It would be nice to mention additional tools that could be used in MacOS or Windows. It would be even more helpful if you could also link to additional tutorials for how use them to test Rust

fitzgen commented 6 years ago

FYI, the system-supported profiler for OSX is Instruments, which comes with XCode. Would love getting a PR that added and Instruments section!

wizofe commented 6 years ago

I may do that if I get the time. If not there's a very useful guide here for anyone else who wants to submit this PR!