3 ms·
You can knock almost a third off that fastest time by building with `-static`. In something that is completely trivial like reading the clock via vDSO the indir
by jeffbee 3y ago
You can knock almost a third off that fastest time by building with `-static`. In something that is completely trivial like reading the clock via vDSO the indirect call overhead of dynamic libc linking becomes huge. `-static` eliminates one level of indirect calls. The indirect vDSO call remains, though.
% ./clocktest | rg MONOTONIC_COARSE
MONOTONIC_COARSE : 2.2ns percall