Big performance differences: Debian (Bullseye) vs Alpine-based Redis images (Docker)

I did some reading and found this interesting discussion regarding why there is such a difference

Yes. It is known that some workloads, mostly involving malloc, and heavy
amounts of C string operations benchmark poorly verses glibc.

This is largely because the security hardening features of musl and
Alpine are not zero cost, but also because musl does not contain
micro-architecture specific optimizations, meaning that on glibc you
might get strlen/strcpy type functions that are hand-tuned for the exact
CPU you are using.

In practice though, performance is adequate for most workloads.

https://lists.alpinelinux.org/~alpine/users/<6df8863e77b970b466dbfc9a3a5c2bcec3199f48.camel%40aquilenet.fr>