git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
736c753
)
Run test 10000 times to make measurement easier.
author
Martin Pool
<mbp@samba.org>
Wed, 19 Mar 2003 02:59:18 +0000
(
02:59
+0000)
committer
Martin Pool
<mbp@samba.org>
Wed, 19 Mar 2003 02:59:18 +0000
(
02:59
+0000)
(This used to be commit
e051789ac6cc05f8a643ea81e887d3b969cf3a27
)
source3/torture/t_strcmp.c
patch
|
blob
|
history
diff --git
a/source3/torture/t_strcmp.c
b/source3/torture/t_strcmp.c
index b510d64cf08528733ca9e079f53b409e4ec53ac9..1d26ad22dec587779add5606f3a9dc39ca289293 100644
(file)
--- a/
source3/torture/t_strcmp.c
+++ b/
source3/torture/t_strcmp.c
@@
-8,14
+8,19
@@
int main(int argc, char *argv[])
{
+ int i, ret;
+
if (argc != 3) {
fprintf(stderr, "usage: %s STRING1 STRING2\n"
"Compares two strings, prints the results of StrCaseCmp\n",
argv[0]);
return 2;
}
-
- printf("%d\n", StrCaseCmp(argv[1], argv[2]));
+
+ for (i = 0; i < 10000; i++)
+ ret = StrCaseCmp(argv[1], argv[2]);
+
+ printf("%d\n", ret);
return 0;
}