quick hack to test memoryspeed for buffers allocated in different ways