from_iter-2-list_unbound.py 146 B

12345678
  1. import bench
  2. def test(num):
  3. for i in iter(range(num//10000)):
  4. l = [0] * 1000
  5. l2 = list(map(lambda x: x, l))
  6. bench.run(test)