Measure Memory Allocation Cost, by Eliminating It
upcoder.com
upcoder.com
One point I think a lot of people miss about custom allocators is that you don't write a custom allocator because you can do a "better job" than the library authors (well, sometimes you do, but hopefully you can assume that the platform authors know more about their platform than you do). But platform authors have to solve the general case. You can usually do better for your specific case. So your allocator is not going to be better than vanilla malloc/free for other programs, but you can tune it to fit your allocation patterns.