Пример #1
0
        static void Main(string[] args)
        {
            var hashClass = new ArrayHashLookup(150000000);

            PerformBenchmark(hashClass);
            Console.ReadLine();
        }
Пример #2
0
 static void Main(string[] args)
 {
     GC.Collect(3);
     GC.WaitForPendingFinalizers();
     {
         var arrayHashLookup = new ArrayHashLookup(TestSize);
         PerformBenchmark(arrayHashLookup, TestSize);
     }
     GC.Collect(3);
     GC.WaitForPendingFinalizers();
     {
         var hashsetHashLookup = new HashsetHashLookup();
         PerformBenchmark(hashsetHashLookup, TestSize);
     }
     Console.ReadLine();
 }