projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fnmatch: fix "[/b" test
[libc-test]
/
src
/
string
/
bench.c
diff --git
a/src/string/bench.c
b/src/string/bench.c
index
fcfc1e9
..
9f0a7f5
100644
(file)
--- a/
src/string/bench.c
+++ b/
src/string/bench.c
@@
-17,6
+17,7
@@
static int bstrstr(int N, const char *needle) {
haystack[l*i+l-1] ^= 1;
}
memcpy(haystack + l*i, needle, l+1);
+ reset_timer();
for (i=0; i<N; i++) {
haystack[0]^=1;
cs += (int)strstr(haystack, needle);