Calculating memory space occupied by unordered maps
问题 I have two unordered maps: (code is executed in linux) First unordered map: It consists of more atleast 65536 entries. Each entry consists of int unsigned char unsigned char Second unordered map: It consists of less than 65536 enteries. Each entry consist of int int int vector <char> Now I want to make comparison of the two on the basis of memory occupied by the above two unordered maps (in bytes). After that I want to calculate memory compression achieved. Please guide me how can I find the