Runtime discrepancy clock_gettime + funcition instrumentation
Florian Weimer
fweimer@redhat.com
Thu Jul 29 07:31:47 GMT 2021
* Christian Weiss:
> Measuring the runtime, the static binary takes about five times more time to finish than the dynamic one. I do not yet understand this observation:
>
> [cweiss@amd022 overhead]$ time ./test_time_static_gcc.x 10000000
> sum: 49999995000000
> real 0m2.594s
> user 0m0.396s
> sys 0m2.197s
> [cweiss@amd022 overhead]$ time ./test_time_dyn_gcc.x 10000000
> sum: 49999995000000
>
> real 0m0.518s
> user 0m0.515s
> sys 0m0.002s
Have you checked that the statically linked version uses vDSO
acceleration instead of system calls?
Thanks,
Florian
More information about the Libc-help
mailing list