Don't use musl if you care about performance
- Programming
- Infrastructure
- Open Source
- Developer Tools
The post claims musl is a bad default if raw speed matters, even though it is popular for statically linked binaries, Rust deployment, Alpine-style small containers, and simpler packaging. The headline number in the article was a 26% slowdown on one application even after replacing musl’s allocator with mimalloc, and a much larger slowdown with musl’s own allocator, which pushed the conversation past the usual “just swap malloc” answer.
If you use musl mainly to get static binaries or smaller images, benchmark it against your real workload before standardizing on it. For multithreaded or allocation-heavy services, treat musl as a portability and packaging choice with a measurable throughput cost, not a free drop-in swap.
-
blog.brokk.ai
- Discuss on HN