Percentage of allocs less than 48 bytes: 96.6 All allocations # A tibble: 22 × 4 obj_len n n_less_than percent 1 9 37 37 0.0591 2 10 10 47 0.0751 3 11 1814 1861 2.97 4 12 1 1862 2.98 5 16 8931 10793 17.3 6 18 729 11522 18.4 7 19 2852 14374 23.0 8 20 67 14441 23.1 9 21 100 14541 23.2 10 22 82 14623 23.4 11 23 77 14700 23.5 12 24 21824 36524 58.4 13 25 95 36619 58.5 14 26 100 36719 58.7 15 27 95 36814 58.8 16 28 24 36838 58.9 17 29 28 36866 58.9 18 30 24 36890 59.0 19 31 14 36904 59.0 20 32 7178 44082 70.5 21 33 12 44094 70.5 22 34 2 44096 70.5 # A tibble: 5 × 4 obj_len n n_less_than percent 1 1024 8 62546 100. 2 1032 6 62552 100. 3 1041 1 62553 100. 4 4096 2 62555 100. 5 4113 2 62557 100 Common Sizes # A tibble: 8 × 2 obj_len n 1 24 21824 2 48 15736 3 16 8931 4 32 7178 5 19 2852 6 11 1814 7 64 1074 8 18 729 62,557 total allocations, total bytes = 2,006,144 Typed allocations # A tibble: 20 × 3 func_name n percent 1 List* Alloc>() 4658 11.2 2 List* Alloc… 2227 5.38 5 syntax_asdl::word__String* Alloc* Alloc* Alloc>() 956 2.31 13 mylib::BufWriter* Alloc() 945 2.28 14 List*>* Alloc*>* Alloc* Alloc>() 932 2.25 17 List* Alloc>() 932 2.25 18 Tuple2* Alloc 1 value_asdl::value__List* Alloc 66.20% of allocs are typed Str - NewStr() and OverAllocatedStr() # A tibble: 16 × 4 str_len n n_less_than percent 1 1 729 729 16.3 2 2 2852 3581 79.9 3 3 67 3648 81.4 4 4 100 3748 83.7 5 5 82 3830 85.5 6 6 77 3907 87.2 7 7 104 4011 89.5 8 8 95 4106 91.7 9 9 100 4206 93.9 10 10 95 4301 96.0 11 11 17 4318 96.4 12 12 28 4346 97.0 13 13 24 4370 97.5 14 14 14 4384 97.9 15 15 9 4393 98.1 16 16 12 4405 98.3 # A tibble: 5 × 4 str_len n n_less_than percent 1 134 1 4475 99.9 2 202 1 4476 99.9 3 255 1 4477 99.9 4 1024 1 4478 100. 5 4096 2 4480 100 4,480 string allocations, total length = 24,705, total bytes = 100,865 7.16% of allocs are strings 5.03% of bytes are strings NewSlab() Lengths # A tibble: 6 × 4 slab_len n n_less_than percent 1 5 13984 13984 83.9 2 7 525 14509 87.1 3 8 49 14558 87.4 4 10 1086 15644 93.9 5 14 78 15722 94.3 6 15 53 15775 94.7 # A tibble: 5 × 4 slab_len n n_less_than percent 1 127 11 16621 99.7 2 128 36 16657 99.9 3 254 1 16658 100. 4 256 6 16664 100. 5 1022 2 16666 100 Slab Types # A tibble: 6 × 2 func_name n 1 Slab* NewSlab(int) 4744 2 Slab* NewSlab… 4086 3 Slab* NewSlab(int) 1623 4 Slab* NewSlab(i… 1422 5 Slab*>* NewSlab*>… 932 6 Slab*>* NewSlab 1 Slab* NewSlab… 1 2 Slab* NewSlab(int) 1 3 Slab* NewSlab(i… 1 4 Slab* NewSlab(int) 1 5 Slab* NewSlab(int) 1 16,666 slabs, total items = 129,305 26.64% of allocs are slabs ::reserve(int n) Num Items # A tibble: 15 × 4 num_items n n_less_than percent 1 0 5 5 0.0154 2 1 20651 20656 63.5 3 2 4247 24903 76.6 4 3 1684 26587 81.8 5 4 2401 28988 89.2 6 5 2724 31712 97.5 7 6 519 32231 99.1 8 7 25 32256 99.2 9 8 39 32295 99.3 10 9 21 32316 99.4 11 10 19 32335 99.4 12 11 46 32381 99.6 13 12 8 32389 99.6 14 13 6 32395 99.6 15 14 7 32402 99.7 # A tibble: 5 × 4 num_items n n_less_than percent 1 63 1 32505 100. 2 64 5 32510 100. 3 111 2 32512 100. 4 179 1 32513 100. 5 1022 2 32515 100 32,515 reserve() calls, total items = 67,168 Untyped: 62,557 Typed + Str + Slab: 62,557