public DictionaryBenchmark()
 {
     dictionaries = new Dictionary <string, object> [N];
     for (int i = 0; i < N; i++)
     {
         dictionaries[i] = MessageCreator.Dictionary();
     }
 }
Esempio n. 2
0
        public DictionaryArrayBenchmark()
        {
            dictionaryArrays = new List <Dictionary <string, object>[]>();
            for (int i = 0; i < N; i++)
            {
                var dictionaryArray = new Dictionary <string, object> [ArraySize];
                for (int j = 0; j < ArraySize; j++)
                {
                    dictionaryArray[j] = MessageCreator.Dictionary();
                }

                dictionaryArrays.Add(dictionaryArray);
            }
        }