void OpenSpeedTest(IDbTimeTests dbTests) { var statistics = dbTests.Open(); Console.WriteLine( $"Time to open DB : {statistics.openTime.TotalMilliseconds,15}ms Memory: {statistics.memorySize}KB"); }
void HugeTest(IDbTimeTests dbTests) { var data = CreateHugeTestData(); var timeSpan = dbTests.InsertRangeCommitByItem(data); Console.WriteLine($"Time to create 10GB DB: {timeSpan.TotalMilliseconds,15}ms"); timeSpan = dbTests.ReadValues(data.Keys.ToList()); Console.WriteLine($"Time to read all values 10GB DB: {timeSpan.TotalMilliseconds,15}ms"); }
void InsertItemTest(IDbTimeTests dbTests, byte[] key, byte[] value) { var timeSpan = dbTests.Insert(key, value); Console.WriteLine($"InsertItem: {timeSpan.TotalMilliseconds,15}ms"); }
void InsertDataByItemTest(IDbTimeTests dbTests) { var timeSpan = dbTests.InsertRangeCommitByItem(_testData); Console.WriteLine($"InsertDataByItem: {timeSpan.TotalMilliseconds,15}ms"); }
void ReadItemTest(IDbTimeTests dbTests, byte[] key) { var timeSpan = dbTests.Read(key); Console.WriteLine($"ReadItem: {timeSpan.TotalMilliseconds,15}ms"); }
void ReadAllDataTest(IDbTimeTests dbTests) { var timeSpan = dbTests.ReadAll(_testData); Console.WriteLine($"ReadAllData: {timeSpan.TotalMilliseconds,15}ms"); }