Пример #1
0
        void RBTCreateTest()
        {
            Console.WriteLine(nameof(RBTCreateTest));
            var v = MeasureTime(() => HashRBTGenerator.CreateRBTN(CaseSize));

            Console.WriteLine($"size: {v.Count}.");
        }
Пример #2
0
 void RBTFindTest()
 {
     Console.WriteLine(nameof(RBTFindTest));
     var buffer = HashRBTGenerator.CreateRBTN(CaseSize);
     var v      = MeasureTime(() =>
     {
         for (var i = 0; i < CaseSize; ++i)
         {
             buffer.ContainsKey(Guid.NewGuid().ToString());
         }
         return(0);
     });
 }