I have a similar piece of code in 4 different technologies (Go, Node, .NET and Python), and all of them are CLI tools. I'd like to benchmark them against one another and record runtime as well as the peak memory working set. The time is trackable with the time command of git bash, but I can't seem to find anything that will return the peak working set.
I have tried process explorer, but once a process exits, it disappears. I'd like to do multiple runs and keep the peak memory usage of each run to calculate an average later, mostly automated. Is this possible with any tools, potentially even built-in ones? I am on Windows 10.