public void LastTwoSize100Num100000() { var anyDictionary = new ChainedHashMap<int, object>(HashFunctions.LastTwoDigit, 100); const string path = @"E:\results.txt"; var tr = File.AppendText(path); var sw = new Stopwatch(); sw.Start(); ContainsKeyPerformance(anyDictionary, 100000); tr.WriteLine("ContainsKey test for LastTwoDigits, Size 100, Num of insertions " + 100000 + " took {0}ms", sw.ElapsedMilliseconds); sw.Stop(); tr.Close(); sw.Reset(); }
public void HashModulo101Size101Num100() { HashFunctions.HashModuloConstant = 101; var anyDictionary = new ChainedHashMap<int, object>(HashFunctions.HashModuloApply, 101); const string path = @"E:\results.txt"; var tr = File.AppendText(path); var sw = new Stopwatch(); sw.Start(); ContainsKeyPerformance(anyDictionary, 100); tr.WriteLine("ContainsKey test for HashModulo101, Size 101, Num of insertions " + 100 + " took {0}ms", sw.ElapsedMilliseconds); sw.Stop(); tr.Close(); sw.Reset(); }