- Add -v option (verbose). Taken from FreeBSD with my modifications.
[dragonfly.git] / test / sysperf / call1.c
1 /*
2  * call1.c
3  *
4  * Test a standard function call to a function which does nothing much.
5  *
6  * $DragonFly: src/test/sysperf/call1.c,v 1.1 2004/03/20 01:51:01 dillon Exp $
7  */
8
9 #include "blib.h"
10
11 #define LOOP 1000000000
12
13 static void nop() { }
14
15 int
16 main(int ac, char **av)
17 {
18     int i;
19
20     printf("call nop() function in loop\n");
21     start_timing();
22     for (i = 0; i < LOOP; ++i)
23         nop();
24     stop_timing(LOOP, "loop1/user");
25     return(0);
26 }
27