So, looks like total syscall overhead is on the order of 0.1 ms? Granted, it's a significant part of the runtime, but I think all the relocations and such are driving the libc overhead (as shown in callgrind output: https://i.imgur.com/Yligh7S.png )
And great, now I know a new way to use perf! (I initially tried profiling with perf but it doesn't get enough samples to be useful!).
And great, now I know a new way to use perf! (I initially tried profiling with perf but it doesn't get enough samples to be useful!).