Open
Description
We added time benchmarks in #2454, it would also be useful to record the peak memory usage.
This page lists a few ways to do this which look interesting:
grep ^VmPeak /proc/113/status
/usr/bin/time -v {cmd} | grep "Maximum resident set size"
valgrind --tool=massif --pages-as-heap=yes --massif-out-file=massif.out {CMD}; grep mem_heap_B massif.out | sed -e 's/mem_heap_B=\(.*\)/\1/' | sort -g | tail -n 1
Figure out which of these is best to use and incorporate into the python/benchmark/run.py
script.