feat(benchmark): add ability to profile memory usage per iteration