internal class Program
private const String LocalHDDTestPath
Constant Value
private const String LocalRootPath
Constant Value
private const String LocalSSDTestPath
Constant Value
private const String NASTestPath
Constant Value
Rnd
Random
private readonly Random Rnd
public void Program()
CreateTestStructure(String rootPath)
Creates random path with random files and folders
private static String CreateTestStructure(String rootPath)
Parameters
rootPath
StringRoot path
Returns
Full test path
CreateTestStructure(String path, Int32 deepness)
Creates the test structure Random files, subfolders and size
private static void CreateTestStructure(String path, Int32 deepness)
Parameters
path
StringStartpath
deepness
Int32Max sub-subfolder count
private static void Main(String[] args)
RandomString(Int32 length)
Generates random string with specific length
private static String RandomString(Int32 length)
Parameters
length
Int32Length of generated string
Returns
Random String
RunTest(String path, Int32 durations)
Runs the Test for each namespace
private static void RunTest(String path, Int32 durations)
Parameters
path
StringTestpath
durations
Int32Number of test duration
public static void Test()
Test_QuickIO_Enumerate_SearchObjects(String path, Int32 durations)
Test QuickIO Implementation 'EnumerateFiles' - Search
private static void Test_QuickIO_Enumerate_SearchObjects(String path, Int32 durations)
Parameters
durations
Int32Duration Count
path
StringPath for test
Test_QuickIO_Enumerate_SearchPath(String path, Int32 durations)
Test QuickIO Implementation 'EnumerateFilePaths' - Search
private static void Test_QuickIO_Enumerate_SearchPath(String path, Int32 durations)
Parameters
durations
Int32Duration Count
path
StringPath for test
Test_SystemIO_Enumerate_SearchObjects(String path, Int32 durations)
Test SystemIO Implementation 'EnumerateFiles FileInfo' - Search
private static void Test_SystemIO_Enumerate_SearchObjects(String path, Int32 durations)
Parameters
durations
Int32Duration Count
path
StringPath for test
Test_SystemIO_Enumerate_SearchPaths(String path, Int32 durations)
Test SystemIO Implementation 'EnumerateFiles Strings' - Search
private static void Test_SystemIO_Enumerate_SearchPaths(String path, Int32 durations)
Parameters
durations
Int32Duration Count
path
StringPath for test
Test_SystemIO_GetFiles_SearchObjects(String path, Int32 durations)
Test SystemIO Implementation 'GetFiles FileInfo' - Search
private static void Test_SystemIO_GetFiles_SearchObjects(String path, Int32 durations)
Parameters
durations
Int32Duration Count
path
StringPath for test
Test_SystemIO_GetFiles_SearchPaths(String path, Int32 durations)
Test SystemIO Implementation 'GetFiles String' - Search
private static void Test_SystemIO_GetFiles_SearchPaths(String path, Int32 durations)
Parameters
durations
Int32Duration Count
path
StringPath for test