tezvyn:

Criterion: the standard Rust benchmarking library

Source: interviewintermediate

WHAT IT TESTS: ecosystem awareness and rigor about measurement. OUTLINE: Criterion runs on stable Rust, collects many samples, applies statistical analysis with confidence intervals, and compares against saved baselines to detect regressions.

WHAT IT TESTS: whether you know the practical benchmarking tooling and understand statistical rigor. ANSWER OUTLINE: Criterion.rs is the de-facto standard, working on stable Rust unlike the nightly-only test::Bencher. It runs the code many times, gathers a distribution of samples, and reports estimates with confidence intervals rather than a single number. It saves results as baselines and automatically compares new runs against them, flagging statistically significant improvements or regressions, and can emit plots.

Read the original → interview

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Criterion: the standard Rust benchmarking library · Tezvyn