Merge commit 'crater/master'
[dragonfly.git] / test / sysperf / call1.c
blob0798801c468b43f228f220cadd300d02163535f7
1 /*
2 * call1.c
4 * Test a standard function call to a function which does nothing much.
6 * $DragonFly: src/test/sysperf/call1.c,v 1.1 2004/03/20 01:51:01 dillon Exp $
7 */
9 #include "blib.h"
11 #define LOOP 1000000000
13 static void xnop() { }
15 int
16 main(int ac, char **av)
18 int i;
20 printf("call nop() function in loop\n");
21 start_timing();
22 for (i = 0; i < LOOP; ++i)
23 xnop();
24 stop_timing(LOOP, "loop1/user");
25 return(0);