Performance
Recipe | Crates | Categories |
---|---|---|
Configure your cargo project for Maximum Performance, Fast Compile Times or Minimal Binary Size | ||
cargo hakari |
Topic | Rust Crates |
---|---|
Profiling and Benchmarking | cargo flamegraph generates flame graphs to visualize performance bottlenecks. cargo bench (built-in) runs benchmarks to measure performance. |
Optimization Analysis | cargo expand expands macros, which can sometimes help you understand generated code and identify optimization opportunities. |
Other Performance Tools | perf ⮳: (System profiler); valgrind ⮳ (Memory debugging and profiling) |
Configure your cargo
Project for Maximum Performance, Fast Compile Times or Minimal Binary Size
cargo wizard
⮳ is a cargo
⮳ subcommand for configuring Cargo projects. It applies profile and config templates to your Cargo project to configure it for maximum performance, fast compile times or minimal binary size.
cargo hakari
cargo-hakari⮳ manage "workspace-hack" packages to speed up builds in large workspaces.
cargo hakari
is a command-line application to manage "workspace-hack" crates. Use it to speed up local cargo build
and cargo check
commands by up to 100x, and cumulatively by up to 1.7x or more.