mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 00:13:01 -05:00
tools: perf testing
This commit is contained in:
parent
edc56df2b2
commit
2dcb21edf2
@ -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
|
||||
|
||||
|
@ -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}");
|
||||
|
Loading…
x
Reference in New Issue
Block a user