From: Matthew Dillon Date: Thu, 3 Dec 2009 23:11:47 +0000 (-0800) Subject: sysperf /call-loop test - Ensure the nop() call is not optimized out X-Git-Tag: v2.7.1~364 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/9a8950383d81cedd1a717e637373a554fbd8562c sysperf /call-loop test - Ensure the nop() call is not optimized out --- diff --git a/test/sysperf/call1.c b/test/sysperf/call1.c index 0798801c46..4b18e485b4 100644 --- a/test/sysperf/call1.c +++ b/test/sysperf/call1.c @@ -10,8 +10,6 @@ #define LOOP 1000000000 -static void xnop() { } - int main(int ac, char **av) { @@ -20,7 +18,7 @@ main(int ac, char **av) printf("call nop() function in loop\n"); start_timing(); for (i = 0; i < LOOP; ++i) - xnop(); + nop(); stop_timing(LOOP, "loop1/user"); return(0); }