Map<Integer, Integer> t = new HashMap <Integer, Integer> ();
VS
ConcurrentHashMap<Integer, Integer> t = new ConcurrentHashMap<Integer, Integer> ();
| HashMap | ConcurrentHashMap | |
| Fill. Memory (bytes) | 68,420,720 | 67,736,912 |
| 6,470,968 | 7,773,352 | |
| -2,084,584 | 70,738,584 | |
| 68,704,136 | 65,310,584 | |
| 2,410,384 | 79,292,264 | |
| Fill. Time (ms) | 432 | 1319 |
| 505 | 764 | |
| 567 | 686 | |
| 391 | 743 | |
| 700 | 445 | |
| Read. Memory (bytes) | 16,075,936 | 16,456,960 |
| -5,918,720 | 16,456,960 | |
| 16,112,320 | -32,882,720 | |
| -17,821,488 | 16,917,760 | |
| 16,008,720 | 14,803,040 | |
| Read. Time (ms) | 48 | 149 |
| 63 | 143 | |
| 29 | 374 | |
| 66 | 158 | |
| 28 | 170 |
Комментариев нет:
Отправить комментарий