tools: perf testing

This commit is contained in:
Bill Zissimopoulos 2022-06-03 22:45:38 +01:00
parent edc56df2b2
commit 2dcb21edf2
2 changed files with 4 additions and 4 deletions

View File

@ -34,10 +34,10 @@ for %%a in (%OptFiles%) do (
)
%fsbench% --empty-cache=C --files=1000 file_create_test >nul
set OptOpen=1 25 50 75 100
set OptOpen=10 20 30 40 50
if X%2==Xbaseline set OptOpen=100
for %%a in (%OptOpen%) do (
call :csv "open." %%a "%fsbench% --empty-cache=C --files=1000 --open=%%a file_open_test file_attr_test"
call :csv "iter." %%a "%fsbench% --empty-cache=C --files=1000 --open=%%a file_open_test file_attr_test file_list_single_test file_list_none_test"
)
%fsbench% --empty-cache=C --files=1000 file_delete_test >nul

View File

@ -103,7 +103,7 @@ static void file_list_single_test(void)
WCHAR FileName[MAX_PATH];
WIN32_FIND_DATAW FindData;
for (ULONG ListIndex = 0; OptListCount > ListIndex; ListIndex++)
for (ULONG OpenIndex = 0; OptOpenCount > OpenIndex; OpenIndex++)
for (ULONG Index = 0; OptFileCount > Index; Index++)
{
StringCbPrintfW(FileName, sizeof FileName, L"fsbench-file%lu", Index);
@ -122,7 +122,7 @@ static void file_list_none_test(void)
WCHAR FileName[MAX_PATH];
WIN32_FIND_DATAW FindData;
for (ULONG ListIndex = 0; OptListCount > ListIndex; ListIndex++)
for (ULONG OpenIndex = 0; OptOpenCount > OpenIndex; OpenIndex++)
for (ULONG Index = 0; OptFileCount > Index; Index++)
{
StringCbPrintfW(FileName, sizeof FileName, L"{5F849D7F-73AF-49AC-B7C3-657B36EAD5C4}");