hack(6): Update gethdate().
[dragonfly.git] / test / sysperf / loop1.c
blob15cf94b155863e081395ee82d9f50de8442c3898
1 /*
2 * loop1.c
4 * used as a helper to test AST delivery. Loops in user mode for 5 seconds.
5 * $DragonFly: src/test/sysperf/loop1.c,v 1.1 2003/08/12 02:29:44 dillon Exp $
6 */
8 #include "blib.h"
10 #define LOOP 100000000
12 int
13 main(int ac, char **av)
15 int i;
17 printf("SMP contention, userland-only loop (run one, then run ncpu copies in parallel\n");
18 start_timing();
19 for (i = 0; i < LOOP; ++i)
20 nop();
21 stop_timing(LOOP, "loop1/user");
22 return(0);