I try to compare different algorithms' performance in one script. Without using profiler, are there any methods we could use to estimate the memory usage at the end of each algorithm implementation?
def main():
test_case = open('text.txt', 'r')
for line in test_case.readlines(): #input different datasets
#do something in Alg1
#evaluate memory usage in Alg1
#do something in Alg2
#evaluate memory usage in Alg2