
Benchmark-memory is a tool that helps to benchmark the memory usage of different pieces of code. It leverages the power of memory_profiler to give a metric of the total amount of memory allocated and retained by a block, as well as the number of objects and strings allocated and retained.