Hashtable t= new Hashtable ();
vs
Dictionary<int, int> t = new Dictionary<int, int> ();
for (0->5)
fill()
for (0->1 000 000)
for (0->5)
read()
for (0->1 000 000)
Hashtable | Dictionary | |
Fill. Memory (bytes) | 66,228,224 | 41,041,920 |
8,454,144 | 24,051,712 | |
29,179,904 | 15,646,720 | |
9,502,720 | 0 | |
65,536 | 0 | |
Fill. Time (ms) | 223 | 211 |
151 | 120 | |
189 | 122 | |
245 | 113 | |
201 | 122 | |
Read. Memory (bytes) | 8,978,432 | 0 |
17,367,040 | 0 | |
8,650,752 | 0 | |
0 | 0 | |
131,072 | 0 | |
Read. Time (ms) | 65 | 33 |
67 | 23 | |
110 | 24 | |
78 | 24 | |
94 | 36 |
Комментариев нет:
Отправить комментарий