Allocator optimization and benchmark