4 * Test a standard function call to a function which does nothing much.
6 * $DragonFly: src/test/sysperf/call2.c,v 1.2 2005/08/02 17:11:04 hmp Exp $
11 #define LOOP 1000000000
13 static void nop(void) { }
15 static void (*nop_ptr)(void) = nop;
18 main(int ac, char **av)
22 printf("call nop() function through function pointer in loop\n");
24 for (i = 0; i < LOOP; ++i)
26 stop_timing(LOOP, "loop1/user");