mirror of
https://github.com/samba-team/samba.git
synced 2025-03-05 20:58:40 +03:00
Run test 10000 times to make measurement easier.
This commit is contained in:
parent
e8155fade6
commit
e051789ac6
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user