Imagine you write application, alternative to some existing version and you want to compare if it's more effective or not,
you can simply use time
like
time yourcommand
time oldcommand
and compare the execution time to check some difference, but this isn't very detailed
Is there similar command to check more data? Such as memory usage, cpu utilization, cpu peak, memory peak etc...