Switched back to using pthread_create versus lwp_create.
[dragonfly/vkernel-mp.git] / test / sysperf / syscall4.c
blob32b9ef6f22cc9b5027650a0332b438873981fb35
1 /*
2 * syscall1.c
4 * $DragonFly: src/test/sysperf/syscall4.c,v 1.1 2003/11/19 01:59:19 dillon Exp $
5 */
7 #include "blib.h"
9 int
10 main(int ac, char **av)
12 long long count = 0;
13 long long max;
14 int j;
15 struct stat st;
17 printf("timing standard stat() syscall\n");
19 start_timing();
20 while (stop_timing(0, NULL) == 0) {
21 for (j = 0; j < 100; ++j)
22 stat(".", &st);
23 count += 100;
25 max = count;
26 start_timing();
27 for (count = 0; count < max; count += 100) {
28 for (j = 0; j < 100; ++j)
29 stat(".", &st);
31 stop_timing(count, "stat()");
32 return(0);