Fix Boot Setup example:
[dragonfly/netmp.git] / test / sysperf / loop1.c
bloba206505593d1e09a4210d58a6cf44bfbe4519b2e
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 static void nop() { }
14 int
15 main(int ac, char **av)
17 int i;
19 printf("SMP contention, userland-only loop (run one, then run ncpu copies in parallel\n");
20 start_timing();
21 for (i = 0; i < LOOP; ++i)
22 nop();
23 stop_timing(LOOP, "loop1/user");
24 return(0);