Back to Browse

Profiling Rust Programs with valgrind, heaptrack, and hyperfine

5.8K views
May 28, 2023
23:38

In this video I show how I use valgrind and hyperfine for CPU profiling and heaptrack for memory profiling of Rust binaries. I also show how I leveraged these tools to get a ~64% decrease in execution time for one of my programs through a mix of algorithmic and source-level optimizations. My website: https://bwestbro.com My configs: https://github.com/ntBre/yt-configs anpass repo: https://github.com/ntBre/anpass pbqff repo: https://github.com/ntBre/pbqff Time stamps 00:00:00 Introduction 00:00:38 CPU profiling with callgrind 00:09:29 Benchmarking with hyperfine 00:14:51 Memory profiling with heaptrack

Download

1 formats

Video Formats

360pmp446.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Profiling Rust Programs with valgrind, heaptrack, and hyperfine | NatokHD