]> git.ipfire.org Git - thirdparty/pdns.git/commit
speedtest: Count the system time as well as the user time 10755/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 23 Sep 2021 08:42:17 +0000 (10:42 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 23 Sep 2021 08:42:17 +0000 (10:42 +0200)
commit0a5af93338e428a1b936ffcf4a1a3f0b994ce2f6
tree4304429e96a14161b5af330aa2f21259946df107
parentd7834c5ddd41f67c172480b4d0dba8c4a54a9d04
speedtest: Count the system time as well as the user time

Our tests are designed to run for 100 ms of CPU time, but this is currently
measured with `ITIMER_VIRTUAL` which means only when the process is executing
in userspace. Switching to `ITIMER_PROF` would also account for the time spent
when the system is running on behalf of the process, which seems closer to what
we want.
pdns/speedtest.cc