Shocked: X32 can be 10% faster, but musl Libc 40% slower
youtube.com
youtube.com
A lot of people who have time to scan an article to find out what the title should have said, have no time to do the same for video.
x32-glibc is about 10% faster than amd64-glibc, but surprisingly x32-musl is 40% slower than the glibc time.
Author mentions that it might just be stdout buffering, implicitly done by glibc but not by musl hinted at by 54min of kernel time vs 7min with glibc.
I'm actually more interested in memory usage.
CERN found that X32 saves between 10% to 20% memory, they found similar gains in execution speed due to better cache utilization
- https://twiki.cern.ch/twiki/pub/ITSDC/ProfAndOptExperimentsA...
- https://www.researchgate.net/publication/270980212_Evaluatio...
(Meaning time() and gettimeofday() turn into kernel syscalls instead of a simple memory access.)
Lots of nuance here that can have far-reaching consequences.
Baseline is x86-64 glibc.
So is this benchmark is comparing an toolchain of x32 binaries to a toolchain of x64 binaries? I assumed that it was cross-targeting.