1# Array operation 2# Type: list, map() call. This method requires allocation of 3# the same amount of memory as original array (to hold result 4# array). On the other hand, input array stays intact. 5import bench 6 7 8def test(num): 9 for i in iter(range(num // 10000)): 10 arr = bytearray(b"\0" * 1000) 11 arr2 = bytearray(map(lambda x: x + 1, arr)) 12 13 14bench.run(test) 15