Hacker ApprovedDepartments

The best sanitizers, according to hackers

6 sanitizers were recommended on Hacker News between November 2025 and November 2026. We rank them by how many separate people recommend each one, and 4 earn the Hacker Approved badge.

Top picks

The three most recommended sanitizers with the badge. Each figure is 2 people. RecommendsCriticizes One comment

  1. Valgrind

    29 recommend, 8 criticize, 78% approval

    Ranked 1 of 6 by recommenders

    Routine check alongside tests

    Free tool that finds memory errors and leaks in native code, recommended as a routine check. Caveats: it is slow and sometimes reports false positives.

  2. Miri

    26 recommend, 3 criticize, 90% approval

    Ranked 2 of 6 by recommenders

    Catches undefined behavior at runtime

    Free Rust tool that runs your tests and flags undefined behavior and memory violations in unsafe code. Critics say it has bugs and limitations and cannot catch everything.

  3. AddressSanitizer

    21 recommend, 4 criticize, 84% approval

    Ranked 3 of 6 by recommenders

    Runs in CI and test suites

    People recommend it for catching memory bugs during testing, such as leaks and out-of-bounds access. Critics say its runtime cost makes it too slow for production use.

All 6 sanitizers, ranked

Select a column heading to sort. Approval share is recommenders out of everyone who gave an opinion; the tick on each bar marks the 2 to 1 line the badge needs. Months counts the months, out of 13, in which someone recommended it.

Sanitizers ranked by the number of people who recommend them
Rank
1Valgrind29878%13—Approved
2Miri26390%12—Approved
3AddressSanitizer21484%7—Approved
4UndefinedBehaviorSanitizer120100%5—Approved
Tied 5Go race detector5183%4——
Tied 5ThreadSanitizer5183%3——

How we rank

Rank is the number of separate people who recommend a product in a Hacker News comment over the past year. Someone who praises the same sanitizer in five threads counts once.

The badge goes to sanitizers that at least 10 people recommend, with recommenders outnumbering critics at least 2 to 1, recommended in at least 4 of the 13 months.

Rankings are never for sale. We may earn a commission when you buy through our links. It never changes the order.