fork download
  1. import resource
  2. l=[]
  3. print(resource.getrusage(resource.RUSAGE_SELF).ru_maxrss/1024, len(l))
  4. for i in range(5005000):
  5. l.append(str(i))
  6. print(resource.getrusage(resource.RUSAGE_SELF).ru_maxrss/1024, len(l))
Success #stdin #stdout 3.81s 10040KB
stdin
Standard input is empty
stdout
3.98828125 0
176.91796875 5005000