Memory allocation speed testing