The time -v command outputs % CPU utilization for a given command on Linux. How do I do this on OS X? The Linux/OS X difference is illustrated here. I would like to measure multi-core utilization across the total execution period of a short-running program, so top probably wouldn't work, as it measures/averages at particular points in time.
Resource usage (% CPU) for given command on OS X
osx;performance;command;time;measure
Seems like there is no real alternative to the gnu time command. So, in the end I installed just that. On OS X gnu-time can be installed with homebrew: brew install gnu-time. Thereafter CPU utilization for a specific command can be measured using gtime <command>. A test shows that my program is indeed running concurrently: 1.73user 0.13system 0:01.61elapsed 115%CPU.