polachok's projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
06b24ec
)
sysperf /call-loop test - Ensure the nop() call is not optimized out
author
Matthew Dillon <dillon@apollo.backplane.com>
Thu, 3 Dec 2009 23:11:47 +0000 (15:11 -0800)
committer
Matthew Dillon <dillon@apollo.backplane.com>
Thu, 3 Dec 2009 23:11:47 +0000 (15:11 -0800)
test/sysperf/call1.c
patch
|
blob
|
blame
|
history
diff --git
a/test/sysperf/call1.c
b/test/sysperf/call1.c
index
0798801
..
4b18e48
100644
(file)
--- 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);
}