public void Setup() { immutableDictionary = ImmutableDictionary.Create <string, int>(); immutableTrieDictionary = ImmutableTrieDictionary.Create <string, int>(); dictionary = new Dictionary <string, int>(); for (int i = 0; i < N; i++) { var key = $"{i},{i}"; immutableDictionary = immutableDictionary.SetItem(key, i); immutableTrieDictionary = immutableTrieDictionary.SetItem(key, i); dictionary[key] = i; } }