4 * N thread getuid timing test (default 1)
10 main(int ac, char **av)
20 printf("timing standard getuid() syscall, single thread\n");
21 printf("if using powerd, run several times\n");
24 while (stop_timing(0, NULL) == 0) {
25 for (j = 0; j < 100; ++j)
32 n = strtol(av[1], NULL, 0);
37 for (i = 0; i < n; ++i) {
39 for (count = 0; count < max; count += 100) {
40 for (j = 0; j < 100; ++j)
46 while (wait3(&status, 0, NULL) >= 0 || errno == EINTR)
48 stop_timing(count * n, "getuid()");