cargo
Rust cargo bench
Run the selected benchmark executable. This lab uses a custom stable harness without nightly #[bench]; it checks behavior, not speed. Example format: shell. Run in a disposable copy of v16/fixtures/projects/profile-demo. Expected result (not executed): The smoke executable prints smoke ok; no timing claim. Common mistake: Treating a smoke check as a benchmark measurement.
Formal Syntax & Structure
rust syntaxrust
cargo bench [OPTIONS]Working Example
Example Snippetrust
cargo bench --offline --bench smoke