I believe Bryant and O'Hallaron wrote a text book just for this course. You can always "optimize" it by reverse engineering the benchmark app and providing the correctly aligned blocks to the bench-marking application. It'll beat the standard malloc calls by several magnitudes if you were to do that.
This is one of the reasons why people write custom allocators - to suit a specific purpose where the allocation pattern is known well in advance.
This is one of the reasons why people write custom allocators - to suit a specific purpose where the allocation pattern is known well in advance.