Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

stl_sizeof

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1.32 sec, absolute running time: 3.58 sec, cpu time: 5.27 sec, memory peak: 864 Mb, absolute service time: 4,92 sec  
edit mode |  history  | discussion
Displaying memory usage in bytes.
Filling data structures with 1000000 elements and reporting the per element memory usage.
memory usage per element of a vector<uint32_t> : 4.1943
memory usage per element of a list<uint32_t> : 24
memory usage per element of a deque<uint32_t> : 4.16408
memory usage per element of an unordered_set<uint32_t> : 24.4506
memory usage per element of a set<uint32_t> : 40
memory usage per element of a unordered_map<uint32_t, uint32_t> : 24.4506
memory usage per element of a map<uint32_t, uint32_t> : 40
hashset size: 0 bucket_cout: 17961079 mem: 143688632
hashset size: 0 bucket_count: 11 mem: 88