mirror of
https://github.com/kdlucas/byte-unixbench.git
synced 2025-03-12 00:00:07 +08:00
According to http://man7.org/linux/man-pages/man2/getpid.2.html: > From glibc version 2.3.4 up to and including version 2.24, the glibc wrapper function for getpid() cached PIDs, with the goal of avoiding additional system calls when a process calls getpid() repeatedly. So it's not suitable to messure the system call performance through getpid(). Directly call syscall(SYS_getpid) is more appropriate. From glibc version 2.25, cached pid is removed to fix some bugs which makes the testsuite wrongly report performance regression on system call. Same issue is reported to unixbench upstream long time ago, but nobody cares. https://github.com/kdlucas/byte-unixbench/pull/58 Signed-off-by: Yuanhong Peng <yummypeng@linux.alibaba.com> github: closes #58 |
||
---|---|---|
.. | ||
arith.c | ||
big.c | ||
context1.c | ||
dhry_1.c | ||
dhry_2.c | ||
dhry.h | ||
dummy.c | ||
execl.c | ||
fstime.c | ||
hanoi.c | ||
looper.c | ||
pipe.c | ||
spawn.c | ||
syscall.c | ||
time-polling.c | ||
timeit.c | ||
ubgears.c | ||
whets.c |