Skip to content
rusthacks.dev
Topic

Testing

Unit, doc and integration tests, property testing and mocks, enough to refactor without flinching.

Flat illustration for the post “Benchmarking Pitfalls in Rust and Dead Code Removal”, composed around perf.
Performance

Benchmarking Pitfalls in Rust and Dead Code Removal

Benchmarks fail by measuring nothing: the optimizer deletes the work, the input is unrealistic, the machine is noisy or the harness measures setup. Here are the traps and how to avoid each.

3 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.