summaryrefslogtreecommitdiff
path: root/src/basic/process-util.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-04-02 11:44:48 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-05-05 13:59:23 +0200
commit07468a16e46dba9da8b9c8593e0c2ee5bfec3c69 (patch)
treef71b2d551f8312b6a6003ad3a5bd9e556457e94e /src/basic/process-util.h
parentdaceaabe1f87de85a404499d95c6f351b83fb3d9 (diff)
downloadsystemd-07468a16e46dba9da8b9c8593e0c2ee5bfec3c69.tar.gz
test-process-util: run fewer getpid() tests
Significant time was spent in the getpid() measurement code, which is not very important. So let's optimize this a bit by running the slower version less times, and only running both tests a lesser amount of times unless slow tests are enabled. This gives the better accuracy then before in slow mode, and still reasonable accuracy in fast mode without a noticable slowdown.
Diffstat (limited to 'src/basic/process-util.h')
0 files changed, 0 insertions, 0 deletions