book
book copied to clipboard
Unsure how to test performance on MacOS
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
FYI, the system-supported profiler for OSX is Instruments, which comes with XCode. Would love getting a PR that added and Instruments section!
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!