Measure linker tasks time
Pass the LD_DEBUG=statistics variable:
LD_DEBUG=statistics base64 <(echo "Hello") | base64 -d
Output:
138867:
138867: runtime linker statistics:
138867: total startup time in dynamic loader: 59081 cycles
138867: time needed for relocation: 16037 cycles (27.1%)
138867: number of relocations: 152
138867: number of relocations from cache: 7
138867: number of relative relocations: 10
138867: time needed to load objects: 20460 cycles (34.6%)
Hello
You can run any program, the base64 is just an example