Use memory_buffer_alloc() in benchmark if available

Allows to measure memory by primitive.
1 file changed